Re: New trigger option of pg_standby - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: New trigger option of pg_standby
Date
Msg-id 49EDE93D.80208@enterprisedb.com
Whole thread Raw
In response to Re: New trigger option of pg_standby  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Automating Partitions in PostgreSQL - Query on syntax
Next
From: Robert Haas
Date:
Subject: Re: Automating Partitions in PostgreSQL - Query on syntax