Further work on elog cleanup: fix some bogosities in elog's logic about
Tom Lane <tgl@sss.pgh.pa.us>
Further work on elog cleanup: fix some bogosities in elog's logic about when to send what to which, prevent recursion by introducing new COMMERROR elog level for client-communication problems, get rid of direct writes to stderr in backend/libpq files, prevent non-error elogs from going to client during the authentication cycle.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/auth.c | modified | +52 −101 |
| src/backend/libpq/crypt.c | modified | +3 −6 |
| src/backend/libpq/hba.c | modified | +51 −93 |
| src/backend/libpq/Makefile | modified | +2 −2 |
| src/backend/libpq/password.c | modified | +7 −16 |
| src/backend/libpq/pqcomm.c | modified | +26 −59 |
| src/backend/libpq/pqformat.c | modified | +2 −2 |
| src/backend/libpq/util.c | deleted | +0 −77 |
| src/backend/postmaster/postmaster.c | modified | +32 −24 |
| src/backend/tcop/postgres.c | modified | +18 −6 |
| src/backend/utils/error/elog.c | modified | +82 −66 |
| src/include/libpq/libpq.h | modified | +1 −19 |
| src/include/miscadmin.h | modified | +4 −3 |
| src/include/utils/elog.h | modified | +19 −15 |