Re: The return value of allocate_recordbuf()

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: The return value of allocate_recordbuf()
Дата
Msg-id CAB7nPqSQ-Je00fcVkKO4apcufD1DapdW5Nrxrzft+Dya=nxGEQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: The return value of allocate_recordbuf()  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
On Fri, Apr 3, 2015 at 9:57 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
> On Fri, Apr 3, 2015 at 8:37 PM, Michael Paquier
> <michael.paquier@gmail.com> wrote:
>> On Fri, Apr 3, 2015 at 6:35 PM, Fujii Masao wrote:
>>> Regarding the second patch, you added the checks of the return value of
>>> XLogReaderAllocate(). But it seems half-baked. XLogReaderAllocate() still
>>> uses palloc(), but don't we need to replace it with palloc_extended(), too?
>>
>> Doh, you are right. I missed three places. Attached is a new patch
>> completing the fix.
>
> Thanks for the patch! I updated two source code comments and
> changed the log message when XLogReaderAllocate returns NULL
> within XLOG_DEBUG block. Just pushed.

Yes, thanks. This looks good as is.
-- 
Michael



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Table-level log_autovacuum_min_duration
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Abbreviated keys for Numeric