Re: vac_truncate_clog()'s bogus check leads to bogusness

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Noah Misch <noah@leadboat.com>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Date: 2023-06-24T01:48:13Z
Lists: pgsql-hackers
Hi,

On 2023-06-23 18:41:58 -0700, Andres Freund wrote:
> I guess this might be caused by 78db307bb23 adding the check, but using
> GetOldestXmin(NULL, true) to determine lastSaneFrozenXid. That was changed
> soon after, in 87f830e0ce03.

FWIW, the discussion leading up to 87f830e0ce03 is
https://postgr.es/m/4182.1405961004%40sss.pgh.pa.us

Greetings,

Andres Freund



Commits

  1. Release lock after encountering bogs row in vac_truncate_clog()