]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix bug in handling of connections that pg_receivexlog creates.
authorFujii Masao <fujii@postgresql.org>
Fri, 17 Oct 2014 18:06:34 +0000 (03:06 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 17 Oct 2014 18:06:34 +0000 (03:06 +0900)
commit504c717599b20cdaf09e9d7b6ecd152cc7a3a71a
tree310765e781484fc2240383b2c0caab87ff867b0b
parent5c38a1d4ecce849b1e105f59ccca5a926181e4f0
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
src/bin/pg_basebackup/pg_receivexlog.c