Re: BUG #16190: The usage of NULL pointer in refint.c
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: starbugs@qq.com, pgsql-bugs@lists.postgresql.org
Date: 2020-01-06T06:49:18Z
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
Commits
-
Remove dependency to system calls for memory allocation in refint
- b0b619638668 13.0 landed