Skip to content

Commit b5ed137

Browse files
committed
Don't attempt to write recovery.conf when -R is not specified
Fixes segmentation fault during regular use. Fujii Masao
1 parent a89c46f commit b5ed137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
10841084
if (copybuf != NULL)
10851085
PQfreemem(copybuf);
10861086

1087-
if (basetablespace)
1087+
if (basetablespace && writerecoveryconf)
10881088
WriteRecoveryConf();
10891089
}
10901090

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy