Re: [PATCH] dynahash: add memory allocation failure check - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: [PATCH] dynahash: add memory allocation failure check
Date
Msg-id 647CA21D-629D-4298-9BF0-3A9C37E6DDEB@yandex-team.ru
Whole thread Raw
In response to Re: [PATCH] dynahash: add memory allocation failure check  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

> On 24 Apr 2025, at 19:10, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> I thought about that but intentionally left it as-is, because that
> would force zeroing of the space reserved for the hashtable name too.
> That's unnecessary, and since it'd often be odd-sized it might result
> in a less efficient fill loop.

Well, that's just few hundred bytes at most. But I agree that makes sense.


Best regards, Andrey Borodin.






pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: What's our minimum supported Python version?
Next
From: Jacob Champion
Date:
Subject: Re: sslmode=secure by default (Re: Making sslrootcert=system work on Windows psql)