Re: BUG #16190: The usage of NULL pointer in refint.c

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: starbugs(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16190: The usage of NULL pointer in refint.c
Date: 2020-01-06 06:49:18
Message-ID: 20200106064918.GS3598@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-01-06 06:50:33 Re: [bug report] A sql statements make query hang
Previous Message Rui Zhong 2020-01-06 06:39:39 [bug report] A sql statements make query hang