mirror of
https://github.com/postgres/postgres.git
synced 2026-07-12 11:05:31 -04:00
Previously, NOTICE, WARNING, and similar messages received from remote servers over replication, postgres_fdw, or dblink connections were printed directly to stderr on the local server (e.g., the subscriber). As a result, these messages lacked log prefixes (e.g., timestamp), making them harder to trace and correlate with other log entries. This commit addresses the issue by introducing a custom notice receiver for replication, postgres_fdw, and dblink connections. These messages are now logged via ereport(), ensuring they appear in the logs with proper formatting and context, which improves clarity and aids in debugging. Author: Vignesh C <vignesh21@gmail.com> Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/CALDaNm2xsHpWRtLm-VL_HJCsaE3+1Y_n-jDEAr3-suxVqc3xoQ@mail.gmail.com |
||
|---|---|---|
| .. | ||
| auth.h | ||
| be-fsstubs.h | ||
| be-gssapi-common.h | ||
| crypt.h | ||
| hba.h | ||
| ifaddr.h | ||
| libpq-be-fe-helpers.h | ||
| libpq-be.h | ||
| libpq-fs.h | ||
| libpq.h | ||
| oauth.h | ||
| pg-gssapi.h | ||
| pqcomm.h | ||
| pqformat.h | ||
| pqmq.h | ||
| pqsignal.h | ||
| protocol.h | ||
| sasl.h | ||
| scram.h | ||