pgsql: Fix a couple of bugs in pg_recvlogical output to stdout.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a couple of bugs in pg_recvlogical output to stdout.
Date: 2014-05-15 16:48:39
Message-ID: E1Wkypj-0007dg-Gt@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix a couple of bugs in pg_recvlogical output to stdout.

Don't close stdout on SIGHUP. Also, when a SIGHUP is received, close the
file immediately, rather than only after receiving some more data from
the server. Rename a variable, to avoid mentally dealing with double
negatives (not unsynced means synced).

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/00c26b6a60e7ceed29ddae34b0a69fe945c08f81

Modified Files
--------------
src/bin/pg_basebackup/pg_recvlogical.c | 47 +++++++++++++++-----------------
1 file changed, 22 insertions(+), 25 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2014-05-15 17:24:00 pgsql: Fix whitespace
Previous Message Heikki Linnakangas 2014-05-15 15:33:18 pgsql: Handle duplicate XIDs in txid_snapshot.