Re: [PATCH] dynahash: add memory allocation failure check

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] dynahash: add memory allocation failure check
Дата
Msg-id 1619050.1745503822@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] dynahash: add memory allocation failure check  (Andrey Borodin <x4mmm@yandex-team.ru>)
Ответы Re: [PATCH] dynahash: add memory allocation failure check
Список pgsql-hackers
Andrey Borodin <x4mmm@yandex-team.ru> writes:
> While fixing this maybe use MemoryContextAllocZero() instead of subsequent MemSet()?

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.

            regards, tom lane



В списке pgsql-hackers по дате отправления: