]> granicus.if.org Git - postgresql/commit
Don't crash when pg_xlog is empty and pg_basebackup -x is used
authorMagnus Hagander <magnus@hagander.net>
Sat, 24 Aug 2013 15:11:31 +0000 (17:11 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 24 Aug 2013 15:14:09 +0000 (17:14 +0200)
commit3979ff1fc6e9dd7847ff9bb24beb4d03ebe02cef
tree1b1d357c436fbb770477ca28730bec7cfe97c559
parentbd5ab4b28745605493ab7061724ba0375ee9593a
Don't crash when pg_xlog is empty and pg_basebackup -x is used

The backup will not work (without a logarchive, and that's the whole
point of -x) in this case, this patch just changes it to throw an
error instead of crashing when this happens.

Noticed and diagnosed by TAKATSUKA Haruka
src/backend/replication/basebackup.c