diff options
author | Magnus Hagander <magnus@hagander.net> | 2011-11-03 15:43:25 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2011-11-03 15:44:02 +0100 |
commit | 3b06105c7d999752177f98fdad20278d57804f8f (patch) | |
tree | 54dedc1354ec8d3617ead1fe07ff72aeb0bf4825 /src | |
parent | e7cc8437bbff99cbc7f07f852f5169ba1356a414 (diff) | |
download | postgresql-3b06105c7d999752177f98fdad20278d57804f8f.tar.gz postgresql-3b06105c7d999752177f98fdad20278d57804f8f.zip |
Properly close replication connection in pg_receivexlog
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_basebackup/pg_receivexlog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/pg_basebackup/pg_receivexlog.c b/src/bin/pg_basebackup/pg_receivexlog.c index 9facc198e4e..9a943d049f1 100644 --- a/src/bin/pg_basebackup/pg_receivexlog.c +++ b/src/bin/pg_basebackup/pg_receivexlog.c @@ -270,6 +270,8 @@ StreamLog(void) ReceiveXlogStream(conn, startpos, timeline, NULL, basedir, segment_callback, continue_streaming, standby_message_timeout); + + PQfinish(conn); } /* |