pgsql: Fix bug in handling of connections that pg_receivexlog creates. - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Fix bug in handling of connections that pg_receivexlog creates.
Date
Msg-id E1XfBww-0006eq-Ih@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix core dump in pg_dump --binary-upgrade on zero-column composi
Next
From: Fujii Masao
Date:
Subject: Re: pgsql: Add support for managing physical replication slots to pg_receiv