pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #8450: pg_basebackup blocks until WAL archiving successful
3+ messages / 3 participants
[nested] [flat]

* BUG #8450: pg_basebackup blocks until WAL archiving successful
@ 2013-09-13 12:13 stuart@stuartbishop.net
  2013-09-23 08:33 ` Re: BUG #8450: pg_basebackup blocks until WAL archiving successful Heikki Linnakangas <hlinnakangas@vmware.com>
  0 siblings, 1 reply; 3+ messages in thread

From: stuart@stuartbishop.net @ 2013-09-13 12:13 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      8450
Logged by:          Stuart Bishop
Email address:      stuart@stuartbishop.net
PostgreSQL version: 9.1.9
Operating system:   all
Description:        

Hi.


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.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #8450: pg_basebackup blocks until WAL archiving successful
  2013-09-13 12:13 BUG #8450: pg_basebackup blocks until WAL archiving successful stuart@stuartbishop.net
@ 2013-09-23 08:33 ` Heikki Linnakangas <hlinnakangas@vmware.com>
  2013-09-25 19:49   ` Re: BUG #8450: pg_basebackup blocks until WAL archiving successful Stuart Bishop <stuart@stuartbishop.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Heikki Linnakangas @ 2013-09-23 08:33 UTC (permalink / raw)
  To: stuart@stuartbishop.net; +Cc: pgsql-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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #8450: pg_basebackup blocks until WAL archiving successful
  2013-09-13 12:13 BUG #8450: pg_basebackup blocks until WAL archiving successful stuart@stuartbishop.net
  2013-09-23 08:33 ` Re: BUG #8450: pg_basebackup blocks until WAL archiving successful Heikki Linnakangas <hlinnakangas@vmware.com>
@ 2013-09-25 19:49   ` Stuart Bishop <stuart@stuartbishop.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Stuart Bishop @ 2013-09-25 19:49 UTC (permalink / raw)
  To: Heikki Linnakangas <hlinnakangas@vmware.com>; +Cc: pgsql-bugs

On Mon, Sep 23, 2013 at 3:33 PM, Heikki Linnakangas

> 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.

I'm supporting PG 9.1 at the moment so cannot rely on
--xlog-method=stream. I agree that the current behavior is for most
use cases better, and I think that the behavior I want should be
explicitly enabled with an option.


-- 
Stuart Bishop <stuart@stuartbishop.net>
http://www.stuartbishop.net/


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2013-09-25 19:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-09-13 12:13 BUG #8450: pg_basebackup blocks until WAL archiving successful stuart@stuartbishop.net
2013-09-23 08:33 ` Heikki Linnakangas <hlinnakangas@vmware.com>
2013-09-25 19:49   ` Stuart Bishop <stuart@stuartbishop.net>

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