X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 31DBD9DC842 for ; Tue, 14 Feb 2006 12:32:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61286-02 for ; Tue, 14 Feb 2006 12:32:35 -0400 (AST) X-Greylist: whitelisted by SQLgrey- Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by postgresql.org (Postfix) with ESMTP id 7F5299DC804 for ; Tue, 14 Feb 2006 12:32:34 -0400 (AST) Received: from imp1-g19.free.fr (imp1-g19.free.fr [212.27.42.1]) by smtp6-g19.free.fr (Postfix) with ESMTP id 2AC94182F8 for ; Tue, 14 Feb 2006 17:32:34 +0100 (CET) Received: by imp1-g19.free.fr (Postfix, from userid 33) id E6A85D9E02; Tue, 14 Feb 2006 17:32:33 +0100 (MET) Received: from wormhole.x-echo.com (wormhole.x-echo.com [193.252.148.11]) by imp1-g19.free.fr (IMP) with HTTP for ; Tue, 14 Feb 2006 17:32:33 +0100 Message-ID: <1139934753.43f20621ba78d@imp1-g19.free.fr> Date: Tue, 14 Feb 2006 17:32:33 +0100 From: martial.bizel@free.fr To: pgsql-performance@postgresql.org Subject: Re: out of memory References: <1139930651.43f1f61b04773@imp2-g19.free.fr> <15115.1139931169@sss.pgh.pa.us> <1139933018.43f1ff5a5e542@imp6-g19.free.fr> <1139933201.22740.179.camel@state.g2switchworks.com> <1139933720.43f20218cfe3a@imp6-g19.free.fr> <1139934097.22740.182.camel@state.g2switchworks.com> In-Reply-To: <1139934097.22740.182.camel@state.g2switchworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 193.252.148.11 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.653 required=5 tests=[AWL=0.103, NO_REAL_NAME=0.55] X-Spam-Score: 0.653 X-Spam-Level: X-Archive-Number: 200602/165 X-Sequence-Number: 17151 command explain analyze crash with the "out of memory" error I precise that I've tried a lot of values from parameters shared_buffer and sort_mem now, in config file, values are : sort_mem=32768 and shared_buffer=30000 server has 4Go RAM. and kernel.shmmax=307200000 > On Tue, 2006-02-14 at 10:15, martial.bizel@free.fr wrote: > > Yes, I've launched ANALYZE command before sending request. > > I precise that's postgres version is 7.3.4 > > So what does explain analyze show for this query, if anything? Can you > increase your sort_mem or shared_buffers (I forget which hash_agg uses > off the top of my head...) if necessary to make it work. Note you can > increase sort_mem on the fly for a given connection. > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings >