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

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

From
Fujii Masao
Date:
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(-)