pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Getting better results from valgrind leak tracking
Date: Wed, 17 Mar 2021 10:16:44 -0400
Message-ID: <3508520.1615990604@sss.pgh.pa.us> (raw)
In-Reply-To: <20210317055718.v6qs3ltzrformqoa@alap3.anarazel.de>
References: <3471359.1615937770@sss.pgh.pa.us>
	<20210317023101.anvejcfotwka6gaa@alap3.anarazel.de>
	<3479700.1615950107@sss.pgh.pa.us>
	<cea52c41-f005-4ec3-8dd8-4d12dbfbe9f6@www.fastmail.com>
	<20210317055718.v6qs3ltzrformqoa@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2021-03-16 20:50:17 -0700, Andres Freund wrote:
>> What I meant was that I didn't understand how there's not a leak
>> danger when compilation fails halfway through, given that the context
>> in question is below TopMemoryContext and that I didn't see a relevant
>> TRY block. But that probably there is something cleaning it up that I
>> didn't see.

> Looks like it's an actual leak:

Yeah, I believe that.  On the other hand, I'm not sure that such cases
represent any real problem for production usage.  I'm inclined to focus
on non-error scenarios first.

(Having said that, we probably have the ability to fix such things
relatively painlessly now, by reparenting an initially-temporary
context once we're done parsing.)

Meanwhile, I'm still trying to understand why valgrind is whining
about the rd_indexcxt identifier strings.  AFAICS it shouldn't.

			regards, tom lane





view thread (23+ messages)  latest in thread

Message-ID: <3508520.1615990604@sss.pgh.pa.us>
Permalink:  ../3508520.1615990604@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3508520.1615990604@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de
  Subject: Re: Getting better results from valgrind leak tracking
  In-Reply-To: <3508520.1615990604@sss.pgh.pa.us>
  References: <3471359.1615937770@sss.pgh.pa.us> <20210317023101.anvejcfotwka6gaa@alap3.anarazel.de> <3479700.1615950107@sss.pgh.pa.us> <cea52c41-f005-4ec3-8dd8-4d12dbfbe9f6@www.fastmail.com> <20210317055718.v6qs3ltzrformqoa@alap3.anarazel.de> <3508520.1615990604@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