Re: [HACKERS] Logical decoding on standby - Mailing list pgsql-hackers

From sanyam jain
Subject Re: [HACKERS] Logical decoding on standby
Date
Msg-id BM1PR01MB10113CA04B57987BE6972620C0DC0@BM1PR01MB1011.INDPRD01.PROD.OUTLOOK.COM
Whole thread Raw
In response to Re: [HACKERS] Logical decoding on standby  (sanyam jain <sanyamjain22@live.in>)
List 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.


Please anyone with experience can explain whether the steps i have done are correct or not.


Thanks,
Sanyam Jain

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] Modifing returning value of PQgetvalue.
Next
From: Noah Misch
Date:
Subject: Re: [HACKERS] transition table behavior with inheritance appears broken