[PATCH] Use MemoryContextAlloc() in the MemoryContextAllocZero() and MemoryContextAllocZeroAligned()

Поиск
Список
Период
Сортировка
От Alexander Kuleshov
Тема [PATCH] Use MemoryContextAlloc() in the MemoryContextAllocZero() and MemoryContextAllocZeroAligned()
Дата
Msg-id CANCZXo5+rDtcoghEs=0_Qoxis7cB6jh7MwhLZm2_DwpEaE6Opw@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] Use MemoryContextAlloc() in the MemoryContextAllocZero() and MemoryContextAllocZeroAligned()  (Michael Paquier <michael.paquier@gmail.com>)
Re: [PATCH] Use MemoryContextAlloc() in the MemoryContextAllocZero() and MemoryContextAllocZeroAligned()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello all,

Attached patch simplifies the MemoryContextAllocZero() and
MemoryContextAllocZeroAligned().
The MemoryContextAllocZero() and MemoryContextAllocZeroAligned()
functions does almost the
same that MemoryContextAlloc() does. Additionally these functions
fills allocated memory context
with zeros via MemSetAligned() and MemSetLoop(). Let's call
MemoryContextAlloc() in these functions
instead of setting isReset to false, call alloc() callback of the
context and etc., to prevent code duplication.

Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Explain [Analyze] produces parallel scan for select Into table statements.
Следующее
От: Salvador Fandiño
Дата:
Сообщение: Re: Perl's newSViv() versus 64-bit ints?