Re: The return value of allocate_recordbuf() - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: The return value of allocate_recordbuf()
Date
Msg-id CAB7nPqT7WE_d1yUHws9mhnihsWJhw0=ZVGEEZzOX0fs=WGCiYw@mail.gmail.com
Whole thread Raw
In response to Re: The return value of allocate_recordbuf()  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: The return value of allocate_recordbuf()
List pgsql-hackers
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.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: EvalPlanQual behaves oddly for FDW queries involving system columns
Next
From: Etsuro Fujita
Date:
Subject: Re: EvalPlanQual behaves oddly for FDW queries involving system columns