Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VXoLZ-00072X-4B for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Oct 2013 08:26:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VXoLY-0002bY-A2 for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Oct 2013 08:26:48 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VXoLW-0002ae-7f for pgsql-bugs@postgresql.org; Sun, 20 Oct 2013 08:26:46 +0000 Received: from d4b26f12.static.ziggozakelijk.nl ([212.178.111.18] helo=storagefox.foxi.nl) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VXoLT-000357-9w for pgsql-bugs@postgresql.org; Sun, 20 Oct 2013 08:26:45 +0000 Received: from techfox.foxi (techfox.foxi [192.168.0.31]) by storagefox.foxi.nl (8.14.5/8.14.5) with ESMTP id r9K8QdL9030053; Sun, 20 Oct 2013 10:26:39 +0200 From: Frank van Vugt To: Valentine Gogichashvili Cc: PostgreSQL Bugs 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 10:26:39 +0200 Message-ID: <2334937.gaPyc11YQv@techfox.foxi> Organization: Foxi Group User-Agent: KMail/4.10.5 (Linux/3.7.10-1.16-desktop; KDE/4.10.5; x86_64; ; ) In-Reply-To: References: <3839201.Nfa2RvcheX@techfox.foxi> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi Valentine, Op zaterdag 19 oktober 2013 21:02:25 schreef Valentine Gogichashvili: > 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: Sure, I understand why you'd want to mention this 'on the side', but I'm aware of OOM-tuning. In production, I use it wherever it's _really_ needed, but mind that the oom-killer in newer kernels is already selecting processes a bit smarter than it used to. In the example I gave, the correct child process was killed. -- 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