pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Andreas Pflug <pgadmin@pse-consulting.de>
Cc: Fujii Masao <masao.fujii@gmail.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Guillaume Smet <guillaume.smet@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: New trigger option of pg_standby
Date: Tue, 21 Apr 2009 18:41:49 +0300
Message-ID: <49EDE93D.80208@enterprisedb.com> (raw)
In-Reply-To: <49EDD9D8.9020102@pse-consulting.de>
References: <3f0b79eb0903242329j12865d55s348f5c873a956e71@mail.gmail.com>
	<3f0b79eb0904132241p18084914g792cb8e5ab3eebb3@mail.gmail.com>
	<3f0b79eb0904150101pb1c59a3ubb422867e8e6a944@mail.gmail.com>
	<49EC3B01.6050509@enterprisedb.com>
	<3f0b79eb0904200354u41b54017u16dc73d021c03cdb@mail.gmail.com>
	<49EC8B06.3020204@enterprisedb.com>
	<1240311836.23905.206.camel@ebony.fara.com>
	<49EDAB5B.5040400@enterprisedb.com>
	<1240313150.23905.222.camel@ebony.fara.com>
	<49EDADD6.1090006@enterprisedb.com>
	<3f0b79eb0904210448l36d9bb27u8b832540010a6f20@mail.gmail.com>
	<49EDD9D8.9020102@pse-consulting.de>

Andreas Pflug wrote:
> I'm a little confused. After pg_standby returned non-zero as indication
> for end-of-recovery, the startup process shouldn't request another file
> from pg_standby, right?

Non-zero return value from restore_command doesn't mean end-of-recovery, 
it means file-not-found. The server will try to open the WAL file from 
pg_xlog if it's not found in archive (= restore_command returned 
non-zero). If it's found in pg_xlog, it will then ask for the next WAL 
file from the archive again. And on top of that, the server will ask for 
history files until it finds one that doesn't exist to figure out the 
new timeline.

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



view thread (127+ messages)  latest in thread

Message-ID: <49EDE93D.80208@enterprisedb.com>
Permalink:  ../49EDE93D.80208@enterprisedb.com/
Also on:    postgresql.org/message-id/49EDE93D.80208@enterprisedb.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: heikki.linnakangas@enterprisedb.com, pgadmin@pse-consulting.de, masao.fujii@gmail.com, simon@2ndquadrant.com, guillaume.smet@gmail.com, tgl@sss.pgh.pa.us, peter_e@gmx.net, Kevin.Grittner@wicourts.gov
  Subject: Re: New trigger option of pg_standby
  In-Reply-To: <49EDE93D.80208@enterprisedb.com>

* 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