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

Commit 8e6b732

Browse files
knizhnikkelvich
authored andcommitted
Fix intialization of RDMS when both pgcommon and pgcommon_srv libraries are loaded in the same process
1 parent d42fa26 commit 8e6b732

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pglogical_receiver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,8 @@ pglogical_receiver_main(Datum main_arg)
663663
timeout.tv_usec = usecs;
664664
timeoutptr = &timeout;
665665

666-
r = pg_select(PQsocket(conn) + 1, &input_mask, NULL, NULL, timeoutptr, conn->isRsocket);
666+
r = PQselect(PQsocket(conn) + 1, &input_mask, NULL, NULL, timeoutptr,
667+
PQisRsocket(conn));
667668
if (r == 0)
668669
{
669670
int64 now = feGetCurrentTimestamp();

0 commit comments

Comments
 (0)