From 3b06105c7d999752177f98fdad20278d57804f8f Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 3 Nov 2011 15:43:25 +0100 Subject: [PATCH] Properly close replication connection in pg_receivexlog --- src/bin/pg_basebackup/pg_receivexlog.c | 2 ++ 1 file changed, 2 insertions(+) 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); } /* -- 2.39.5