]> 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:18 +0000 (17:14 +0200)
commit3cf89057b5bced4478a285e0b49e321996b40044
treee7060791441855db67a0f1711112e3285972082a
parentc19617d5355e41074623bbb7c3efda532c20f637
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