simplehash: preserve consistency in case of OOM

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: simplehash: preserve consistency in case of OOM
Date: 2023-11-17 18:42:54
Message-ID: ac56a219dddbe58019f7125f68dd2e17867f7386.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Right now, if allocation fails while growing a hashtable, it's left in
an inconsistent state and can't be used again.

Patch attached.

--
Jeff Davis
PostgreSQL Contributor Team - AWS

Attachment Content-Type Size
v1-0001-simplehash-preserve-consistency-in-case-of-OOM.patch text/x-patch 3.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2023-11-17 18:45:56 Re: Allow tests to pass in OpenSSL FIPS mode
Previous Message Paul Jungwirth 2023-11-17 18:39:58 Re: SQL:2011 application time