Re: Allowing multiple concurrent base backups - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Allowing multiple concurrent base backups
Date
Msg-id 1294782705.25860.4.camel@jdavis-ux.asterdata.local
Whole thread Raw
In response to Re: Allowing multiple concurrent base backups  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Allowing multiple concurrent base backups  (Magnus Hagander <magnus@hagander.net>)
Re: Allowing multiple concurrent base backups  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On Tue, 2011-01-11 at 22:56 +0200, Heikki Linnakangas wrote:
> >   1. If it's a primary recovering from a crash, and there is a
> > backup_label file, and the WAL referenced in the backup_label exists,
> > then it does a bunch of extra work during recovery; and
> >   2. In the same situation, if the WAL referenced in the backup_label
> > does not exist, then it PANICs with a HINT to tell you to remove the
> > backup_label.
> >
> > Is this an opportunity to solve these problems and simplify the code?
> 
> It won't change the situation for pg_start_backup(), but with the patch 
> the base backups done via streaming won't have those issues, because 
> backup_label is not created (with that name) in the master.

Do you think we should change the backup protocol for normal base
backups to try to fix this? Or do you think that the simplicity of
unrestricted file copy is worth these problems?

We could probably make some fairly minor changes, like making a file on
the primary and telling users to exclude it from any base backup. The
danger, of course, is that they do copy it, and their backup is
compromised.

Regards,Jeff Davis




pgsql-hackers by date:

Previous
From: Euler Taveira de Oliveira
Date:
Subject: Re: [PERFORM] pgbench to the MAXINT
Next
From: Magnus Hagander
Date:
Subject: Re: Allowing multiple concurrent base backups