pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Andres Freund <andres@anarazel.de>
Cc: starbugs@qq.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16190: The usage of NULL pointer in refint.c
Date: Mon, 06 Jan 2020 21:12:05 -0500
Message-ID: <7984.1578363125@sss.pgh.pa.us> (raw)
In-Reply-To: <20200107012741.GD2386@paquier.xyz>
References: <16190-70181c803641c3dc@postgresql.org>
	<20200106051800.GL3598@paquier.xyz>
	<1234.1578291695@sss.pgh.pa.us>
	<20200106174443.3pwnmshbxrbwggrm@alap3.anarazel.de>
	<20200107012741.GD2386@paquier.xyz>

Michael Paquier <michael@paquier.xyz> writes:
> On Mon, Jan 06, 2020 at 09:44:43AM -0800, Andres Freund wrote:
>> I think we should consider either moving this out of contrib, or fixing
>> it up. test/example code is fine, but contrib gets installed by default
>> for a lot of people... And yea, this isn't just about contrib/spi.

> No idea about moving that out of contrib/, but here is a patch to fix
> things that just moves the allocations to TopMemoryContext and removes
> the system calls.

WFM.  There are probably more elegant ways to do it than to drop this
stuff into TopMemoryContext, but this is surely better than unchecked
malloc calls.

			regards, tom lane





view thread (11+ messages)  latest in thread

Message-ID: <7984.1578363125@sss.pgh.pa.us>
Permalink:  ../7984.1578363125@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7984.1578363125@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, andres@anarazel.de, starbugs@qq.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16190: The usage of NULL pointer in refint.c
  In-Reply-To: <7984.1578363125@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox