diff --git a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c index 7b4ddf7a8f52..fa6fa790d1aa 100644 --- a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c +++ b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c @@ -127,6 +127,12 @@ _PG_init(void) WalReceiverFunctions = &PQWalReceiverFunctions; } +static void +notice_processor(void *arg, const char *message) +{ + elog(LOG, "%s", message); +} + /* * Establish the connection to the primary server. * @@ -253,6 +259,8 @@ libpqrcv_connect(const char *conninfo, bool replication, bool logical, PQclear(res); } + PQsetNoticeProcessor(conn->streamConn, notice_processor, NULL); + conn->logical = logical; return conn;