From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: stuart@stuartbishop.net
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8450: pg_basebackup blocks until WAL archiving successful
Date: Mon, 23 Sep 2013 11:33:51 +0300
Message-ID: <523FFCEF.4040302@vmware.com> (raw)
In-Reply-To: <E1VKSFU-0005pJ-7S@wrigleys.postgresql.org>
References: <E1VKSFU-0005pJ-7S@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 13.09.2013 15:13, stuart@stuartbishop.net wrote:
> pg_basebackup blocks until all necessary WAL files have been archived by
> archive_command. This can take a few minutes under normal circumstances, and
> indefinitely if archive_command is failing.
>
> I would like to be able to disable this check, as I am streaming backups to
> a system that can time out my connection if it does not receive new data for
> a short while. This makes unattended backups problematic.
I can see why you'd want that, but it seems equally problematic to let
pg_basebackup return, when the WAL files haven't been archived yet and
you therefore don't in fact have valid, restorable backup yet. Have you
considered using the --xlog-method=stream option, to include the WAL
files in the backup? That will make your backups somewhat larger, as the
WAL files are included, but in that mode pg_basebackup won't wait for
the archival and the backup will be restorable even if archive_command
is failing.
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: hlinnakangas@vmware.com, stuart@stuartbishop.net
Subject: Re: BUG #8450: pg_basebackup blocks until WAL archiving successful
In-Reply-To: <523FFCEF.4040302@vmware.com>
References: <E1VKSFU-0005pJ-7S@wrigleys.postgresql.org> <523FFCEF.4040302@vmware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox