diff options
author | Magnus Hagander <magnus@hagander.net> | 2013-01-09 16:57:32 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2013-01-09 16:57:32 +0100 |
commit | b5ed1376c61b341939ef3f54996a5c5af3408a06 (patch) | |
tree | d0c40116ab5c14790ece9103518521d536b90c37 /src | |
parent | a89c46f9bc314ed549245d888da09b8c5cace104 (diff) | |
download | postgresql-b5ed1376c61b341939ef3f54996a5c5af3408a06.tar.gz postgresql-b5ed1376c61b341939ef3f54996a5c5af3408a06.zip |
Don't attempt to write recovery.conf when -R is not specified
Fixes segmentation fault during regular use.
Fujii Masao
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 661cf246a0d..ffc882616fc 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -1084,7 +1084,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum) if (copybuf != NULL) PQfreemem(copybuf); - if (basetablespace) + if (basetablespace && writerecoveryconf) WriteRecoveryConf(); } |