Re: Clean shutdown and warm standby - Mailing list pgsql-hackers

From Guillaume Smet
Subject Re: Clean shutdown and warm standby
Date
Msg-id 1d4e0c10904280835ha58ece4l63fadca6275ae7a9@mail.gmail.com
Whole thread Raw
In response to Re: Clean shutdown and warm standby  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Clean shutdown and warm standby  (Guillaume Smet <guillaume.smet@gmail.com>)
List pgsql-hackers
On Tue, Apr 28, 2009 at 5:22 PM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> At a normal startup, the checkpoint record would be there as usual. And an
> archive recovery starts at the location indicated by the backup label.
>
> AFAICS calling RequestXLogSwitch() before CreateCheckPoint would be
> equivalent to calling "pg_switch_xlog()" just before shutting down.

That's what I had in mind when writing the patch but I didn't know the
implications of this particular checkpoint.

So moving the call before CreateCheckPoint is what I really intended
now that I have in mind these implications and I don't why it would be
a problem to miss this checkpoint in the logs archived.

-- 
Guillaume


pgsql-hackers by date:

Previous
From: "vacuum"
Date:
Subject: Re: idea: global temp tables
Next
From: Tom Lane
Date:
Subject: Small problem with PlaceHolderVar mechanism