Re: [HACKERS] Logical decoding on standby

Поиск
Список
Период
Сортировка
От sanyam jain
Тема Re: [HACKERS] Logical decoding on standby
Дата
Msg-id BM1PR01MB10110F7F25ED9B8081816CA1C0DA0@BM1PR01MB1011.INDPRD01.PROD.OUTLOOK.COM
обсуждение исходный текст
Ответ на Re: [HACKERS] Logical decoding on standby  (sanyam jain <sanyamjain22@live.in>)
Ответы Re: [HACKERS] Logical decoding on standby  (sanyam jain <sanyamjain22@live.in>)
Re: [HACKERS] Logical decoding on standby  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
Hi,
After changing 
sendTimeLineIsHistoric = state->currTLI == ThisTimeLineID;
to
sendTimeLineIsHistoric = state->currTLI != ThisTimeLineID;

I was facing another issue.
On promotion of a cascaded server ThisTimeLineID in the standby server having logical slot becomes 0.
Then i added a function call to GetStandbyFlushRecPtr in StartLogicalReplication which updates ThisTimeLineID.

After the above two changes timeline following is working.But i'm not sure whether this is correct or not.In any case please someone clarify.

Thanks,
Sanyam Jain

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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: [HACKERS] UPDATE of partition key
Следующее
От: Konstantin Knizhnik
Дата:
Сообщение: Re: [HACKERS] ASOF join