1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Don't attempt to write recovery.conf when -R is not specified

Fixes segmentation fault during regular use.

Fujii Masao
This commit is contained in:
Magnus Hagander
2013-01-09 16:57:32 +01:00
parent a89c46f9bc
commit b5ed1376c6

View File

@ -1084,7 +1084,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
if (copybuf != NULL)
PQfreemem(copybuf);
if (basetablespace)
if (basetablespace && writerecoveryconf)
WriteRecoveryConf();
}