"Kevin Grittner" <kevin.gritt...@wicourts.gov> writes:
> Tom Lane <t...@sss.pgh.pa.us> wrote: 
>> I'm going to go ahead and make this happen, using the arrangement
>> 
>> pg_start_backup('label') -> slow checkpoint (backwards compatible)
>> pg_start_backup('label', false) -> slow checkpoint
>> pg_start_backup('label', true) -> immediate checkpoint
 
> Probably a dumb question, but just to be sure: none of these functions
> will return before the checkpoint is complete, right?  (In other
> words, when the function returns, it is safe to begin the base
> backup?)

Correct.  The only change here is whether or not to pass the
CHECKPOINT_IMMEDIATE flag to RequestCheckpoint.  We do CHECKPOINT_WAIT
in any case.

                        regards, tom lane

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

Reply via email to