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 67DC79DCC53 for ; Tue, 14 Feb 2006 12:21:40 -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 60100-03 for ; Tue, 14 Feb 2006 12:21:38 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id 474D59DCB82 for ; Tue, 14 Feb 2006 12:21:38 -0400 (AST) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Tue, 14 Feb 2006 16:21:37 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 14 Feb 2006 10:21:37 -0600 Subject: Re: out of memory From: Scott Marlowe To: martial.bizel@free.fr Cc: Tom Lane , pgsql-performance@postgresql.org In-Reply-To: <1139933720.43f20218cfe3a@imp6-g19.free.fr> 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> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1139934097.22740.182.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 14 Feb 2006 10:21:37 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.167 required=5 tests=[AWL=0.166, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 0.167 X-Spam-Level: X-Archive-Number: 200602/163 X-Sequence-Number: 17149 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.