Re: BUG #18259: Assertion in ExtendBufferedRelLocal() fails after no-space-left condition

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: tender wang <tndrwang@gmail.com>
Cc: Richard Guo <guofenglinux@gmail.com>, Alexander Lakhin <exclusion@gmail.com>, pgsql-bugs@lists.postgresql.org, Andres Freund <andres@anarazel.de>
Date: 2024-01-05T11:28:37Z
Lists: pgsql-bugs
On Thu, Jan 04, 2024 at 09:40:56AM +0900, Michael Paquier wrote:
> Like?  I don't feel like there is a need for more documentation in
> this area, but of course feel free to add anything you think would be
> worth adding, either as a patch or as suggestions for such comments
> for these specific code path branches.

I have been eyeing on this stuff for a bit, and applied the fix down
to 16.  If you feel that the documentation should be improved, feel
free to submit a patch.

Regarding the testing, the patch for injection points is still under
discussion.  I've noted this thread as something that could make use
of this facility.
--
Michael

Commits

  1. Fix corruption of local buffer state during extend of temp relation

  2. bufmgr: Acquire and clean victim buffer separately