Re: Unexpected behavior after OOM errors - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Unexpected behavior after OOM errors
Date
Msg-id al6kEnBlIYH-518T@paquier.xyz
Whole thread
In response to Re: Unexpected behavior after OOM errors  (Matthias van de Meent <boekewurm+postgres@gmail.com>)
List pgsql-hackers
On Mon, Jul 20, 2026 at 01:51:33PM +0200, Matthias van de Meent wrote:
> While the Assert is caused by other effects, it would still leave an
> incorrect rd_partcheck around in relcaches, so here's a patch that
> fixes that issue with rd_partcheckcxt. It also avoids leaking the
> context itself into the CacheMemoryContext when an OOM happens, so
> that's a neat addition.

Neater to not call AllocSetContextCreate() in the cache context this
way, indeed.  That's better than what I have sent.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: hashjoins vs. Bloom filters (yet again)
Next
From: Tatsuo Ishii
Date:
Subject: Re: Row pattern recognition