pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Use asynchronous connect API in libpqwalreceiver
Date: Fri, 03 Mar 2017 14:17:44 +0000
Message-ID: <E1cjo1g-0000mr-ST@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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>

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 (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (22+ messages)  latest in thread

Message-ID: <E1cjo1g-0000mr-ST@gemulon.postgresql.org>
Permalink:  ../E1cjo1g-0000mr-ST@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cjo1g-0000mr-ST@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Use asynchronous connect API in libpqwalreceiver
  In-Reply-To: <E1cjo1g-0000mr-ST@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox