Re: BUG #16190: The usage of NULL pointer in refint.c - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #16190: The usage of NULL pointer in refint.c
Date
Msg-id 20200106064918.GS3598@paquier.xyz
Whole thread Raw
In response to Re: BUG #16190: The usage of NULL pointer in refint.c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Mon, Jan 06, 2020 at 01:21:35AM -0500, Tom Lane wrote:
> Yeah, if somebody wanted to fix this, the right way is to replace
> these malloc calls with pallocs.  Some investigation would be needed
> about which context to use.

It seems to me that this would be TopMemoryContext.  All the plans
used for the checks are kept within the context of the session.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Rui Zhong
Date:
Subject: [bug report] A sql statements make query hang
Next
From: Tom Lane
Date:
Subject: Re: [bug report] A sql statements make query hang