pg.ddx.io  pgsql-bugs@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-bugs@lists.postgresql.org, amdmi3@amdmi3.ru, Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Jakub Janeček <jakub.janecek@comgate.cz>
Subject: Re: BUG #15592: Memory overuse with subquery containing unnest() and set operations (11.x regression)
Date: Sat, 09 Feb 2019 10:09:57 -0500
Message-ID: <6147.1549724997@sss.pgh.pa.us> (raw)
In-Reply-To: <20190209150028.fmmy3xxobh5rqfru@alap3.anarazel.de>
References: <15592-cc5729f9ba02e31c@postgresql.org>
	<26375.1547483080@sss.pgh.pa.us>
	<3935CFAF-8FD4-459E-B13F-67DFEE852028@anarazel.de>
	<27372.1547484627@sss.pgh.pa.us>
	<27649.1547485075@sss.pgh.pa.us>
	<20190114180423.ywhdg2iagzvh43we@alap3.anarazel.de>
	<20190114222838.h6r3fuyxjxkykf6t@alap3.anarazel.de>
	<20190209094025.a2sf2lw3zvnhtrtq@alap3.anarazel.de>
	<4491.1549722881@sss.pgh.pa.us>
	<20190209150028.fmmy3xxobh5rqfru@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2019-02-09 09:34:41 -0500, Tom Lane wrote:
>> Andres Freund <andres@anarazel.de> writes:
>>> ... Given that, I think it's ok
>>> to not explicitly shutdown the expr context.

>> Uh, what?

> Well, you explicitly removed the surrounding reasoning. What's the issue
> you see here? The generated expression cannot contain anything that uses
> shutdown callbacks

Even if that happens to be true today, it certainly looks like a booby
trap primed and ready to bite somebody in the future.  An ExprContext
that fails to provide one of the basic services of an ExprContext ---
indeed, the *only* basic service of an ExprContext, since whatever else
it does is just a memory context feature --- doesn't sound like a great
plan to me.

What is it you're actually hoping to do by removing this guarantee?
(I apologize for not having been paying attention to this thread,
but I do have finite bandwidth.)

>> This doesn't really seem like the kind of patch to push on a release
>> weekend.  At this point you can't even be confident of getting a readout
>> from every active buildfarm member.

> Yea, I'd hoped to push this earlier, but unfortune family issues +
> related travel + work travel prevented me from getting to this
> earlier. The memory leak is significant, the patch hasn't materially
> changed in the two weeks since it has been posted, and there's nothing
> operating system / architecture related, which I think makes this
> acceptable.

I'm thinking more of the valgrind and clobber_cache_always members,
which are pretty slow by definition.

			regards, tom lane




view thread (13+ messages)  latest in thread

Message-ID: <6147.1549724997@sss.pgh.pa.us>
Permalink:  ../6147.1549724997@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6147.1549724997@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, andrew@tao11.riddles.org.uk, jakub.janecek@comgate.cz
  Subject: Re: BUG #15592: Memory overuse with subquery containing unnest() and set operations (11.x regression)
  In-Reply-To: <6147.1549724997@sss.pgh.pa.us>
  References: <15592-cc5729f9ba02e31c@postgresql.org> <26375.1547483080@sss.pgh.pa.us> <3935CFAF-8FD4-459E-B13F-67DFEE852028@anarazel.de> <27372.1547484627@sss.pgh.pa.us> <27649.1547485075@sss.pgh.pa.us> <20190114180423.ywhdg2iagzvh43we@alap3.anarazel.de> <20190114222838.h6r3fuyxjxkykf6t@alap3.anarazel.de> <20190209094025.a2sf2lw3zvnhtrtq@alap3.anarazel.de> <4491.1549722881@sss.pgh.pa.us> <20190209150028.fmmy3xxobh5rqfru@alap3.anarazel.de> <6147.1549724997@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