Re: [PATCHES] Doc update for pg_start_backup - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: [PATCHES] Doc update for pg_start_backup
Date
Msg-id 1183100685.3589.28.camel@silverbirch.site
Whole thread Raw
In response to Re: [PATCHES] Doc update for pg_start_backup  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, 2007-06-28 at 23:35 -0400, Tom Lane wrote:
> Heikki Linnakangas <heikki@enterprisedb.com> writes:
> > Added a note to the docs that pg_start_backup can take a long time to 
> > finish now that we spread out checkpoints:
> 
> I was starting to wordsmith this, and then wondered whether it's not
> just a stupid idea for pg_start_backup to act that way.  The reason
> you're doing it is to take a base backup, right?  What are you going
> to take the base backup with?  I do not offhand know of any backup
> tools that don't suck major amounts of I/O bandwidth.  That being
> the case, you're simply not going to schedule the operation during
> full-load periods. 

Well, that assumes you can predict a time of reduced load and that time
critical activities won't happen at that point. Many times you can, but
I see no reason to force a checkpoint immediate.

If you use snapshots you can copy the data away in your own time, so not
all backup mechanisms draw extensive/high priority I/O power.

>  And that leads to the conclusion that
> pg_start_backup should just use CHECKPOINT_IMMEDIATE and not slow
> you down.

I would prefer the default to be do this slowly. If there is a reason to
do it fast, maybe, but we should err towards low impact.

--  Simon Riggs              EnterpriseDB   http://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] Doc update for pg_start_backup
Next
From: "Simon Riggs"
Date:
Subject: Re: lazy vacuum sleeps with exclusive lock on table