Clean up some confusion about where and how to set whereToSendOutput.
Tom Lane <tgl@sss.pgh.pa.us>
Clean up some confusion about where and how to set whereToSendOutput. We will no longer try to send elog messages to the client before we have initialized backend libpq (oops); however, reporting bogus commandline switches via elog does work now (not irrelevant, because of PGOPTIONS). Fix problem with inappropriate sending of checkpoint-process messages to stderr.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/pg_proc.c | modified | +2 −3 |
| src/backend/commands/async.c | modified | +2 −3 |
| src/backend/commands/define.c | modified | +3 −6 |
| src/backend/libpq/pqsignal.c | modified | +5 −2 |
| src/backend/postmaster/postmaster.c | modified | +14 −3 |
| src/backend/tcop/postgres.c | modified | +34 −21 |
| src/backend/tcop/utility.c | modified | +2 −2 |
| src/backend/utils/adt/sets.c | modified | +2 −5 |
| src/include/catalog/pg_proc.h | modified | +3 −5 |
| src/include/commands/defrem.h | modified | +2 −3 |