Re: Documentation Update: Document pg_start_backup checkpoint behavior - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Documentation Update: Document pg_start_backup checkpoint behavior
Date
Msg-id 16846.1239049825@sss.pgh.pa.us
Whole thread Raw
In response to Re: Documentation Update: Document pg_start_backup checkpoint behavior  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-hackers
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Tom Lane <tgl@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


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Documentation Update: Document pg_start_backup checkpoint behavior
Next
From: "Kevin Grittner"
Date:
Subject: custom tsearch2 parsers