pgsql: Don't crash when pg_xlog is empty and pg_basebackup -x is used - Mailing list pgsql-committers

From Magnus Hagander
Subject pgsql: Don't crash when pg_xlog is empty and pg_basebackup -x is used
Date
Msg-id E1VDFZk-0004QG-I5@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3cf89057b5bced4478a285e0b49e321996b40044

Modified Files
--------------
src/backend/replication/basebackup.c |    8 ++++++++
1 file changed, 8 insertions(+)


pgsql-committers by date:

Previous
From: pgsql@postgresql.org
Date:
Subject: pgsql: Tag refs/tags/REL9_3_RC1 was created
Next
From: Magnus Hagander
Date:
Subject: pgsql: Don't crash when pg_xlog is empty and pg_basebackup -x is used