pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Frank van Vugt <ftm.van.vugt@foxi.nl>
Cc: Tomas Vondra <tv@fuzzy.cz>
Cc: pgsql-bugs@postgresql.org
Cc: Valentine Gogichashvili <valgog@gmail.com>
Subject: Re: array_agg() on a set larger than some arbitrary(?) limit causes runaway memory usage and eventually memory exhaustion
Date: Thu, 31 Oct 2013 10:05:16 -0400
Message-ID: <22340.1383228316@sss.pgh.pa.us> (raw)
In-Reply-To: <3014614.ujIC87ofob@techfox.foxi>
References: <3839201.Nfa2RvcheX@techfox.foxi>
	<1615181.fDHOPIPOzk@techfox.foxi>
	<c1b68cb9c6007d7fd7bcdbce3e8a9983.squirrel@sq.gransy.com>
	<3014614.ujIC87ofob@techfox.foxi>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Frank van Vugt <ftm.van.vugt@foxi.nl> writes:
> Op zondag 20 oktober 2013 12:57:43 schreef Tomas Vondra:
>> Attached is a quick patch removing the local memory context and using
>> aggcontext instead.

> It looks like this didn't go into git yet. Will it be in v9.2.6/v9.3.1?

Certainly not.  We can consider it for 9.4, if Tomas submits it to the
commitfest process, but it needs review and testing.  In particular
I'm skeptical that it probably outright breaks some cases (look at
makeMdArrayResult) and results in substantial added bloat, not savings,
in others.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (15+ messages)  latest in thread

Message-ID: <22340.1383228316@sss.pgh.pa.us>
Permalink:  ../22340.1383228316@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22340.1383228316@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, ftm.van.vugt@foxi.nl, tv@fuzzy.cz, valgog@gmail.com
  Subject: Re: array_agg() on a set larger than some arbitrary(?) limit causes runaway memory usage and eventually memory exhaustion
  In-Reply-To: <22340.1383228316@sss.pgh.pa.us>
  References: <3839201.Nfa2RvcheX@techfox.foxi> <1615181.fDHOPIPOzk@techfox.foxi> <c1b68cb9c6007d7fd7bcdbce3e8a9983.squirrel@sq.gransy.com> <3014614.ujIC87ofob@techfox.foxi> <22340.1383228316@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