pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank van Vugt <ftm.van.vugt@foxi.nl>
To: Tom Lane <tgl@sss.pgh.pa.us>
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: Fri, 01 Nov 2013 13:06:20 +0100
Message-ID: <7389794.JZAAPvMp9o@techfox.foxi> (raw)
In-Reply-To: <22340.1383228316@sss.pgh.pa.us>
References: <3839201.Nfa2RvcheX@techfox.foxi>
	<3014614.ujIC87ofob@techfox.foxi>
	<22340.1383228316@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Op donderdag 31 oktober 2013 10:05:16 schreef Tom Lane:
> > 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,

Clear, please mind the fact that Tomas did point out to me that it was an 
untested patch ;)

However, although the example with which I ran into this issue was a bit 
contrived, the current behaviour of the array functions in terms of memory 
usage does seem to be a bit greedy. So at least it _looks_ like a good idea to 
want to do something about it, since triggering this issue in the real world 
doesn't seem that far-fetched...

Tomas...., are you planning to (submit a patch)?



-- 

Best,




Frank.



-- 
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: <7389794.JZAAPvMp9o@techfox.foxi>
Permalink:  ../7389794.JZAAPvMp9o@techfox.foxi/
Also on:    postgresql.org/message-id/7389794.JZAAPvMp9o@techfox.foxi

 · 

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: ftm.van.vugt@foxi.nl, tgl@sss.pgh.pa.us, 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: <7389794.JZAAPvMp9o@techfox.foxi>
  References: <3839201.Nfa2RvcheX@techfox.foxi> <3014614.ujIC87ofob@techfox.foxi> <22340.1383228316@sss.pgh.pa.us> <7389794.JZAAPvMp9o@techfox.foxi>

* 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