Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6ba1378

Browse files
author
Commitfest Bot
committed
[PATCH]: ./register_notice_process.patch
1 parent e050af2 commit 6ba1378

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ _PG_init(void)
127127
WalReceiverFunctions = &PQWalReceiverFunctions;
128128
}
129129

130+
static void
131+
notice_processor(void *arg, const char *message)
132+
{
133+
elog(LOG, "%s", message);
134+
}
135+
130136
/*
131137
* Establish the connection to the primary server.
132138
*
@@ -253,6 +259,8 @@ libpqrcv_connect(const char *conninfo, bool replication, bool logical,
253259
PQclear(res);
254260
}
255261

262+
PQsetNoticeProcessor(conn->streamConn, notice_processor, NULL);
263+
256264
conn->logical = logical;
257265

258266
return conn;

0 commit comments

Comments
 (0)