postgresql/src/include/libpq
Fujii Masao 112faf1378 Log remote NOTICE, WARNING, and similar messages using ereport().
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
2025-07-22 14:16:45 +09:00
..
auth.h Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays 2025-05-08 22:01:25 +03:00
be-fsstubs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
be-gssapi-common.h Move GSSAPI includes into its own header 2025-03-26 15:31:46 +01:00
crypt.h Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays 2025-05-08 22:01:25 +03:00
hba.h Add support for OAUTHBEARER SASL mechanism 2025-02-20 16:25:17 +01:00
ifaddr.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
libpq-be-fe-helpers.h Log remote NOTICE, WARNING, and similar messages using ereport(). 2025-07-22 14:16:45 +09:00
libpq-be.h Add local-address escape "%L" to log_line_prefix. 2025-04-07 11:06:05 -04:00
libpq-fs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
libpq.h backend libpq void * argument for binary data 2025-02-23 14:27:02 +01:00
oauth.h Harmonize function parameter names for Postgres 18. 2025-04-12 12:07:36 -04:00
pg-gssapi.h Move GSSAPI includes into its own header 2025-03-26 15:31:46 +01:00
pqcomm.h Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays 2025-05-08 22:01:25 +03:00
pqformat.h backend libpq void * argument for binary data 2025-02-23 14:27:02 +01:00
pqmq.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pqsignal.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
protocol.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
sasl.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
scram.h Update copyright for 2025 2025-01-01 11:21:55 -05:00