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:13:49 +0000 (17:13 +0200)
commitdb4ef737606e340479d68f63f33bc7d21f937ca7
treeb545e133b1731f2ae3d3136f3f54720ed2f88fc8
parentfcf9ecad575302fe3b9fe7cd269c9c153817b16c
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