Re: [GENERAL] clarification about standby promotion

Поиск
Список
Период
Сортировка
От Rakesh Kumar
Тема Re: [GENERAL] clarification about standby promotion
Дата
Msg-id DM2PR05MB622189FA27475E942D2F6D48C450@DM2PR05MB622.namprd05.prod.outlook.com
обсуждение исходный текст
Ответ на Re: [GENERAL] clarification about standby promotion  (Jehan-Guillaume de Rorthais <ioguix@free.fr>)
Ответы Re: [GENERAL] clarification about standby promotion  (Jehan-Guillaume de Rorthais <ioguix@free.fr>)
Список pgsql-general
>Sure, but when you are doing a switchover, the standby is supposed to be
>connected to the master when you shutdown the master. So based on the doc,
>the standby should receive **everything** from the master before the master
>actually shutdown.

We use 9.5 and even in that version there is no handshake during role reversal.
In fact PG does not have concept of handshake and role reversal unlike in Db2, oracle
and sqlserver you can switchover from one to other by a single command.

Our DBAs use home grown script for switchover which does the following:

1 - first kill postmaster in the outgoing primary.
2 - promote the standby as the new primary
3 - use timeline to resync former primary (of step 1) with the new primary (step 2).
4- open up connection to the new standby (former primary)

I hope a more elegant way exists as in other RDBMS.

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

Предыдущее
От: Jehan-Guillaume de Rorthais
Дата:
Сообщение: Re: [GENERAL] clarification about standby promotion
Следующее
От: "David O'Mahony"
Дата:
Сообщение: [GENERAL] How to troubleshoot "write on backend 0 failed"