pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Recovery bug
Date: Thu, 11 Nov 2010 09:10:14 -0800
Message-ID: <1289495414.18031.1.camel@jdavis> (raw)
In-Reply-To: <4CDC17C4.4060502@enterprisedb.com>
References: <1287183483.30681.54.camel@jdavis-ux.asterdata.local>
	<1287355728.8516.383.camel@jdavis>
	<4CBD6458.4050400@enterprisedb.com>
	<1287507095.8516.547.camel@jdavis>
	<1287517214.20345.5.camel@jdavis-ux.asterdata.local>
	<4CC56DA5.3040908@enterprisedb.com>
	<1288022672.8516.801.camel@jdavis>
	<4CC687CB.6080306@enterprisedb.com>
	<1289434809.22581.99.camel@jdavis-ux.asterdata.local>
	<4CDC17C4.4060502@enterprisedb.com>

On Thu, 2010-11-11 at 18:20 +0200, Heikki Linnakangas wrote:
> On 11.11.2010 02:20, Jeff Davis wrote:
> > There is a problem with this patch. ReadRecord() not only modifies
> > global variables, it also modifies the location pointed to by "record",
> > which is later used to set "wasShutdown". How about if we only set
> > "wasShutdown" if there is no backup_label (because the checkpoint for
> > pg_start_backup() will never be a shutdown checkpoint anyway)?
> 
> Oh, good catch.
> 
> > Trivial patch attached.
> 
> Hmm, you're assuming that the checkpoint specified in the backup label 
> is never a shutdown checkpoint. I guess that's true, but I'd rather do 
> this (patch attached).
> 

Looks good to me. Thanks!

> (StartupXLOG is quite a mess...)

Agreed.

Regards,
	Jeff Davis




view thread (20+ messages)

Message-ID: <1289495414.18031.1.camel@jdavis>
Permalink:  ../1289495414.18031.1.camel@jdavis/
Also on:    postgresql.org/message-id/1289495414.18031.1.camel@jdavis

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pgsql@j-davis.com, heikki.linnakangas@enterprisedb.com
  Subject: Re: Recovery bug
  In-Reply-To: <1289495414.18031.1.camel@jdavis>
  References: <1287183483.30681.54.camel@jdavis-ux.asterdata.local> <1287355728.8516.383.camel@jdavis> <4CBD6458.4050400@enterprisedb.com> <1287507095.8516.547.camel@jdavis> <1287517214.20345.5.camel@jdavis-ux.asterdata.local> <4CC56DA5.3040908@enterprisedb.com> <1288022672.8516.801.camel@jdavis> <4CC687CB.6080306@enterprisedb.com> <1289434809.22581.99.camel@jdavis-ux.asterdata.local> <4CDC17C4.4060502@enterprisedb.com> <1289495414.18031.1.camel@jdavis>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox