]> granicus.if.org Git - postgresql/commit
Use asynchronous connect API in libpqwalreceiver
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 3 Mar 2017 14:07:22 +0000 (09:07 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 3 Mar 2017 14:13:58 +0000 (09:13 -0500)
commit1e8a850094478a2036891fa3d4ce769bce411ee3
treeebbf65f27777bca45982c51bfdfb22dcc57a6e0f
parent9eb344faf54a849898d9be012ddfa8204cfeb57c
Use asynchronous connect API in libpqwalreceiver

This makes the connection attempt from CREATE SUBSCRIPTION and from
WalReceiver interruptable by the user in case the libpq connection is
hanging.  The previous coding required immediate shutdown (SIGQUIT) of
PostgreSQL in that situation.

From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Tested-by: Thom Brown <thom@linux.com>
src/backend/postmaster/pgstat.c
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/include/pgstat.h