Re: Use pg_rewind when target timeline was switched

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Use pg_rewind when target timeline was switched
Дата
Msg-id CAB7nPqT4J-twDqsjYJYsfY8Ofe=0FVpNtc3t6CpGJr=4F+X=pA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Use pg_rewind when target timeline was switched  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: Use pg_rewind when target timeline was switched  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On Fri, Sep 18, 2015 at 6:25 PM, Michael Paquier wrote:
> The refactoring of getTimelineHistory as you propose looks like a good
> idea to me, I tried to remove by myself the difference between source
> and target in copy_fetch.c and friends but this gets uglier,
> particularly because of datadir_source in copy_file_range. Not worth
> it.

Forgot that:   if (ControlFile_target.state != DB_SHUTDOWNED)       pg_fatal("target server must be shut down
cleanly\n");
We may want to allow a target node shutdowned in recovery as well here.
-- 
Michael



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Use pg_rewind when target timeline was switched
Следующее
От: Noah Misch
Дата:
Сообщение: Re: row_security GUC, BYPASSRLS