Re: hash_xlog_split_allocate_page: failed to acquire cleanup lock
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Mark Dilger <mark.dilger@enterprisedb.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>,
Amit Kapila <amit.kapila16@gmail.com>, Robert Haas <robertmhaas@gmail.com>
Date: 2022-08-10T05:35:09Z
Lists: pgsql-hackers
On Wed, Aug 10, 2022 at 5:28 PM Andres Freund <andres@anarazel.de> wrote: > I don't think it's a safe assumption that nobody would hold a pin on such a > page during recovery. While not the case here, somebody else could have used > pg_prewarm to read it in. > > But also, the checkpointer or bgwriter could have it temporarily pinned, to > write it out, or another backend could try to write it out as a victim buffer > and have it temporarily pinned. Right, of course. So it's just that hash indexes didn't get xlog'd until 2017, and still aren't very popular, and then recovery didn't get regression tested until 2021, so nobody ever hit it.
Commits
-
Fix cleanup lock acquisition in SPLIT_ALLOCATE_PAGE replay.
- e848be60b5cf 16.0 landed
- e49e191815b6 15.2 landed
- 9693f190076e 14.7 landed
- 20c223336301 13.10 landed
- 4dccccb37e0b 12.14 landed
- 1703033f896a 11.19 landed