pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tv@fuzzy.cz>
To: pgsql-bugs@postgresql.org
Subject: Re: array_agg() on a set larger than some arbitrary(?) limit causes runaway memory usage and eventually memory exhaustion
Date: Sun, 20 Oct 2013 02:37:18 +0200
Message-ID: <526325BE.6020501@fuzzy.cz> (raw)
In-Reply-To: <CAP93muUfwRvg6EpdNZh=5viaZUUXfzm1do3EkkKBTJiC-9Jeaw@mail.gmail.com>
References: <3839201.Nfa2RvcheX@techfox.foxi>
	<CAP93muUfwRvg6EpdNZh=5viaZUUXfzm1do3EkkKBTJiC-9Jeaw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi,

On 19.10.2013 21:02, Valentine Gogichashvili wrote:
> Hi Frank, 
> 
> this is a little bit not relevant to the question itself. But to prevent
> OOM killer from currupting your database please consider this for your
> production environments:
> http://www.postgresql.org/docs/9.1/static/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT

Not sure what's your suggestion? The problem is that the database is
actually using the memory, so overcommit is not directly applicable here.

He might easily add more swap to "fix" the issue, but it will take ages
to actually execute the query because of the overhead.

Tomas




-- 
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: <526325BE.6020501@fuzzy.cz>
Permalink:  ../526325BE.6020501@fuzzy.cz/
Also on:    postgresql.org/message-id/526325BE.6020501@fuzzy.cz

 · 

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: tv@fuzzy.cz
  Subject: Re: array_agg() on a set larger than some arbitrary(?) limit causes runaway memory usage and eventually memory exhaustion
  In-Reply-To: <526325BE.6020501@fuzzy.cz>
  References: <3839201.Nfa2RvcheX@techfox.foxi> <CAP93muUfwRvg6EpdNZh=5viaZUUXfzm1do3EkkKBTJiC-9Jeaw@mail.gmail.com> <526325BE.6020501@fuzzy.cz>

* 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