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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers