Re: Outdated replication protocol error? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Outdated replication protocol error?
Date
Msg-id 20210616231727.4pq6tgs2hkygl7uy@alap3.anarazel.de
Whole thread Raw
In response to Re: Outdated replication protocol error?  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Outdated replication protocol error?
List pgsql-hackers
Hi,

On 2021-06-16 15:59:11 -0700, Jeff Davis wrote:
> [ digging up old thread ]
> 
> It seems everyone agrees that the current behavior is strange.

Yea. I don't remember the details, but I've also hit this problem since
in some odd circumstance while reviewing the "logical decoding on
standbys" patchset.


> Any ideas on a solution here?

I think we should explicitly compute the current timeline before using
ThisTimelineID. E.g. in StartReplication() call a new version of
GetFlushRecPtr() that also returns the current timeline id.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Split xlog.c
Next
From: John Naylor
Date:
Subject: Re: PoC: Using Count-Min Sketch for join cardinality estimation