pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Fujii Masao <masao.fujii@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Recovery bug
Date: Mon, 18 Oct 2010 15:00:41 -0700
Message-ID: <1287439241.16094.1.camel@jdavis-ux.asterdata.local> (raw)
In-Reply-To: <AANLkTini761KUSddaYeYURaU-OcEvRx+uEH1N9NF5Yho@mail.gmail.com>
References: <1287183483.30681.54.camel@jdavis-ux.asterdata.local>
	<1287355728.8516.383.camel@jdavis>
	<AANLkTi=ffepY1tpduZBxLGBycg7NekF=KuacC4MW=Wwj@mail.gmail.com>
	<1287425255.14324.18.camel@jdavis-ux.asterdata.local>
	<AANLkTini761KUSddaYeYURaU-OcEvRx+uEH1N9NF5Yho@mail.gmail.com>

On Mon, 2010-10-18 at 17:51 -0400, Robert Haas wrote:
> On Mon, Oct 18, 2010 at 2:07 PM, Jeff Davis <pgsql@j-davis.com> wrote:
> > On Mon, 2010-10-18 at 17:02 +0900, Fujii Masao wrote:
> >> Yep, to automatically delete backup_label and continue recovery seems to be
> >> dangerous. How about just emitting FATAL error when neither restore_command
> >> nor primary_conninfo is supplied and backup_label exists? This seems to be
> >> simpler than your proposed patch (i.e., check whether REDO location exists).
> >>
> >
> > Either is fine with me.
> >
> > Do users have any expectation that they can restore a backup without
> > using recovery.conf by merely having the WAL segments in pg_xlog?
> 
> I would expect that to work.
> 

If that's the expectation, I believe my original fix has less impact.
It's essentially a sanity check to make sure that the first segment
needed is available before proceeding.

Regards,
	Jeff Davis




view thread (20+ messages)  latest in thread

Message-ID: <1287439241.16094.1.camel@jdavis-ux.asterdata.local>
Permalink:  ../1287439241.16094.1.camel@jdavis-ux.asterdata.local/
Also on:    postgresql.org/message-id/1287439241.16094.1.camel@jdavis-ux.asterdata.local

 · 

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, robertmhaas@gmail.com, masao.fujii@gmail.com
  Subject: Re: Recovery bug
  In-Reply-To: <1287439241.16094.1.camel@jdavis-ux.asterdata.local>
  References: <1287183483.30681.54.camel@jdavis-ux.asterdata.local> <1287355728.8516.383.camel@jdavis> <AANLkTi=ffepY1tpduZBxLGBycg7NekF=KuacC4MW=Wwj@mail.gmail.com> <1287425255.14324.18.camel@jdavis-ux.asterdata.local> <AANLkTini761KUSddaYeYURaU-OcEvRx+uEH1N9NF5Yho@mail.gmail.com> <1287439241.16094.1.camel@jdavis-ux.asterdata.local>

* 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