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 <[email protected]> Tested-by: Thom Brown <[email protected]> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/1e8a850094478a2036891fa3d4ce769bce411ee3 Modified Files -------------- src/backend/postmaster/pgstat.c | 4 +- .../libpqwalreceiver/libpqwalreceiver.c | 49 +++++++++++++++++++++- src/include/pgstat.h | 2 +- 3 files changed, 50 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
