Re: Improve handling of parameter differences in physical replication

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Improve handling of parameter differences in physical replication
Дата
Msg-id 9f2b7b1e-7e41-4258-e86c-2611375ea9af@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Improve handling of parameter differences in physical replication  (Sergei Kornilov <sk@zsrv.org>)
Ответы Re: Improve handling of parameter differences in physical replication
Список pgsql-hackers
On 2020-11-20 16:47, Sergei Kornilov wrote:
> Hmm... Good question. How about putting CheckForStandbyTrigger() in a wait loop, but reporting FATAL with an
appropriatemessage, such as "promotion is not possible because of insufficient parameter settings"?
 
> Also it suits me if we only document that we ignore promote here. I don't think this is an important case. And yes,
it'snot easy to allow promotion, since we have already updated control file.
 
> 
> Probably we need pause only after we reached consistency?

Here is an updated patch that implements both of these points.  I have 
used hot standby active instead of reached consistency.  I guess 
arguments could be made either way, but the original use case really 
cared about hot standby.

-- 
Peter Eisentraut
2ndQuadrant, an EDB company
https://www.2ndquadrant.com/

Вложения

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Add docs stub for recovery.conf
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Add docs stub for recovery.conf