Re: False "pg_serial": apparent wraparound” in logs - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: False "pg_serial": apparent wraparound” in logs
Date
Msg-id ZRysuWrRM2ADywY6@paquier.xyz
Whole thread Raw
In response to Re: False "pg_serial": apparent wraparound” in logs  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers
On Sun, Oct 01, 2023 at 09:43:21PM +0300, Heikki Linnakangas wrote:
> I think the smallest fix here would be to change CheckPointPredicate() so
> that if tailPage > headPage, pass headPage to SimpleLruTruncate() instead of
> tailPage. Or perhaps it should go into the "The SLRU is no longer needed"
> codepath in that case. If tailPage > headPage, the SLRU isn't needed at the
> moment.

Good idea.  Indeed that should be good and simple enough for the
back-branches, at quick glance.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Synchronizing slots from primary to standby
Next
From: Alexander Korotkov
Date:
Subject: Re: Removing unneeded self joins