New trigger file in pg_standby to promote the standby to the primary

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема New trigger file in pg_standby to promote the standby to the primary
Дата
Msg-id 3f0b79eb0811250703o2332d151lab02c423024f88dd@mail.gmail.com
обсуждение исходный текст
Ответы Re: New trigger file in pg_standby to promote the standby to the primary  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
Hi,

In current pg_standby, the presence of the trigger file causes
recovery to end whether or not the next WAL file is available.
Thereby, some transactions in the available WAL files will be
lost. So, we cannot use this trigger file to promote the standby
to the primary.

I'd like to add new trigger file option into pg_standby, and end
recovery after redoing all the available WAL files. Concretely
speaking, I would always make pg_standby look for the trigger
file after trying to restore the WAL file once. If the trigger file
is present, pg_standby exits immediately without deleting the
trigger file. Subsequent pg_standby uses the existing trigger
file.

This option is also useful for warm-standby.

Any comments welcome!

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Exporting PGINTERVALSTYLE prevents access to older server versions
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Brittleness in regression test setup