Content-Length: 256920 | pFad | http://github.com/postgrespro/postgres/commit/b5ed1376c61b341939ef3f54996a5c5af3408a06

03 Don't attempt to write recovery.conf when -R is not specified · postgrespro/postgres@b5ed137 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/b5ed1376c61b341939ef3f54996a5c5af3408a06

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy