Re: New trigger option of pg_standby

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: New trigger option of pg_standby
Дата
Msg-id 49EDE93D.80208@enterprisedb.com
обсуждение исходный текст
Ответ на Re: New trigger option of pg_standby  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Automating Partitions in PostgreSQL - Query on syntax
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Automating Partitions in PostgreSQL - Query on syntax