pgsql: Fix bug in handling of connections that pg_receivexlog creates.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bug in handling of connections that pg_receivexlog creates.
Date: 2014-10-17 18:08:26
Message-ID: E1XfBww-0006eq-Ih@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix bug in handling of connections that pg_receivexlog creates.

Previously pg_receivexlog created new connection for WAL streaming
even though another connection which had been established to create
or delete the replication slot was being left. This caused the unused
connection to be left uselessly until pg_receivexlog exited.
This bug was introduced by the commit d9f38c7.

This patch changes pg_receivexlog so that the connection for
the replication slot is reused for WAL streaming.

Andres Freund, slightly modified by me, reviewed by Michael Paquier

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/504c717599b20cdaf09e9d7b6ecd152cc7a3a71a

Modified Files
--------------
src/bin/pg_basebackup/pg_receivexlog.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2014-10-17 18:09:01 Re: pgsql: Add support for managing physical replication slots to pg_receiv
Previous Message Tom Lane 2014-10-17 16:49:52 pgsql: Fix core dump in pg_dump --binary-upgrade on zero-column composi