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: pgsql-bugs@postgresql.org
Cc: Valentine Gogichashvili <valgog@gmail.com>
Cc: ftm.van.vugt@foxi.nl
Subject: Re: array_agg() on a set larger than some arbitrary(?) limit causes runaway memory usage and eventually memory exhaustion
Date: Thu, 24 Oct 2013 11:12:14 +0200
Message-ID: <3716683.icChMuMX1C@techfox.foxi> (raw)
In-Reply-To: <CAP93muVkB17HZYUufcvK8BBHkyPhvVmMyaXUDxPh+1JLwQVS+A@mail.gmail.com>
References: <3839201.Nfa2RvcheX@techfox.foxi>
	<2334937.gaPyc11YQv@techfox.foxi>
	<CAP93muVkB17HZYUufcvK8BBHkyPhvVmMyaXUDxPh+1JLwQVS+A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi Valentine,

Op zondag 20 oktober 2013 14:06:19 schreef Valentine Gogichashvili:
Apropos, how does the string_agg aggregate behave in your example? 
Will be nice to know without experimenting myself and looking into the 
sources :)



Interesting....

On the 1e7 dataset, our custom comcat() function runs for ~18.5 
seconds and eats up to ~6,5 GB of memory, while the string_agg() on 
the same dataset runs for ~23.5 seconds and eats up to ~16 GB of 
memory.




-- 

Best,




Frank.

view thread (15+ messages)  latest in thread

Message-ID: <3716683.icChMuMX1C@techfox.foxi>
Permalink:  ../3716683.icChMuMX1C@techfox.foxi/
Also on:    postgresql.org/message-id/3716683.icChMuMX1C@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, 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: <3716683.icChMuMX1C@techfox.foxi>
  References: <3839201.Nfa2RvcheX@techfox.foxi> <2334937.gaPyc11YQv@techfox.foxi> <CAP93muVkB17HZYUufcvK8BBHkyPhvVmMyaXUDxPh+1JLwQVS+A@mail.gmail.com> <3716683.icChMuMX1C@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