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

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't crash when pg_xlog is empty and pg_basebackup -x is used
Date: 2013-08-24 15:16:28
Message-ID: E1VDFZk-0004QD-G3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/db4ef737606e340479d68f63f33bc7d21f937ca7

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-08-24 19:14:44 pgsql: Account better for planning cost when choosing whether to use cu
Previous Message pgsql 2013-08-24 01:17:29 pgsql: Tag refs/tags/REL9_3_RC1 was created