X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A4FD2536A0 for ; Tue, 26 Apr 2005 15:05:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 71784-02 for ; Tue, 26 Apr 2005 18:05:51 +0000 (GMT) Received: from koolancexeon.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr1.postgresql.org (Postfix) with ESMTP id 027335361A for ; Tue, 26 Apr 2005 15:05:50 -0300 (ADT) Received: mail.g2switchworks.com 10.10.1.8 from 10.10.1.37 10.10.1.37 via HTTP with MS-WebStorage 6.5.6944 Received: from state.g2switchworks.com by mail.g2switchworks.com; 26 Apr 2005 13:05:49 -0500 Subject: Re: out of memory From: Scott Marlowe To: hugues-vincent.grislin@vif.tm.fr Cc: pgsql-general@postgresql.org In-Reply-To: <426E49F9.3010806@vif.tm.fr> References: <426E49F9.3010806@vif.tm.fr> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1114538749.13303.1265.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 26 Apr 2005 13:05:49 -0500 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/1212 X-Sequence-Number: 77125 On Tue, 2005-04-26 at 09:02, Hugues-Vincent Grislin wrote: > Hello, > > I have a problem when i try to execute my request : > > ERROR: out of memory > DETAIL: Failed on request of size 336. > > (I had execute the " VACCUM" before) > It's a SELECT which contains several jointures (simple ones, 1-1). > With 5 jointures there is no problem but with 6, i have this error. > > config : > Postgres 7.4.7 > Linux Redhat 7.0 > RAM : 256 Mo > swap : 256 Mo > > I found some threads about that but no answer. > Thanks, Have you analyzed the database? Try that first. If you still get an out of memory error, try setting enable_hashagg off (set enable_hashagg=false;) and then running the same query again and see if it then works. If it does, post the result of explain analyze YOURQUERYHERE If it doesn't post the output of a plain explain, no analyze.