Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id E08059FA4BF for ; Wed, 12 Sep 2007 11:21:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 12934-04 for ; Wed, 12 Sep 2007 11:21:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id D05529F9BAC for ; Wed, 12 Sep 2007 11:21:01 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l8CEKmMV020998; Wed, 12 Sep 2007 10:20:58 -0400 (EDT) To: Tino Schwarze cc: pgsql-admin@postgresql.org, "Tena Sakai" Subject: Re: out of memory In-reply-to: <20070912081205.GA29139@easy2.in-chemnitz.de> References: <10890.1189569501@sss.pgh.pa.us> <20070912081205.GA29139@easy2.in-chemnitz.de> Comments: In-reply-to Tino Schwarze message dated "Wed, 12 Sep 2007 10:12:05 +0200" Date: Wed, 12 Sep 2007 10:20:48 -0400 Message-ID: <20997.1189606848@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/75 X-Sequence-Number: 26836 Tino Schwarze writes: > On Tue, Sep 11, 2007 at 09:15:56PM -0700, Tena Sakai wrote: >> But there's a problem, for which I hope you have >> more wisdom. The reason why I tried that query >> is because someone tried the same thing via odbc >> from pc quering postgres database and got the >> same error ("out of memory"). >> >> What can a pc user do? Anything? > Tell the user that he/she should use an appropiate WHERE clause. You > might also consider adding more swap to the machine. Then it will go > horribly slow, but it will work. Or turn the query into a cursor so you can FETCH a reasonable number of rows at a time. regards, tom lane