Code review for log_line_prefix patch. Cooperate with StringInfo instead
Tom Lane <tgl@sss.pgh.pa.us>
Code review for log_line_prefix patch. Cooperate with StringInfo instead of fighting it, avoid hard-wired (and wrong) assumption about max length of prefix, cause %l to actually work as documented, don't compute data we may not need.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/error/elog.c | modified | +135 −130 |
| src/backend/utils/misc/ps_status.c | modified | +6 −7 |
| src/include/libpq/libpq-be.h | modified | +9 −3 |