Re: Online backup cause boot failure, anyone know why? - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Online backup cause boot failure, anyone know why?
Date
Msg-id 4C5AD712.205@enterprisedb.com
Whole thread Raw
In response to Re: Online backup cause boot failure, anyone know why?  ("Richard" <husttripper@vip.sina.com>)
List pgsql-hackers
On 05/08/10 17:56, Richard wrote:
> I am sorry, my English is poor.
> I was confused by what you said.
> What do you mean by saying   "that'd break it"!

Replacing CHECKPOINT_WAIT with CHECKPOINT_IMMEDIATE broke it. Don't do that.

If you want to change the behavior of pg_start_backup() to perform the
checkpoint immediately, change "CHECKPOINT_WAIT" to "CHECKPOINT_WAIT |
CHECKPOINT_IMMEDIATE".

The usual work-around though is not to hack the source code, but perform
a manual CHECKPOINT just before calling pg_start_backuo(). That makes
the checkpoint performed by pg_start_backup() finish quickly.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: MERGE Specification
Next
From: Pavel Stehule
Date:
Subject: Re: GROUPING SETS revisited