X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E8D389DC850 for ; Tue, 13 Dec 2005 10:18: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 67534-08 for ; Tue, 13 Dec 2005 10:18:41 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id B7AAE9DC852 for ; Tue, 13 Dec 2005 10:18:27 -0400 (AST) Received: (from luf@localhost) by smtp.pzkagis.cz (8.11.6/8.11.6) id jBDEI8M05873; Tue, 13 Dec 2005 15:18:08 +0100 Date: Tue, 13 Dec 2005 15:18:08 +0100 From: Ludek Finstrle To: Filip Wuytack Cc: pgsql-odbc@postgresql.org Subject: Re: Out of memory troubles with version 8.01.01.02 Message-ID: <20051213141808.GA5689@soptik.pzkagis.cz> References: <439E948B.1080703@wuytack.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <439E948B.1080703@wuytack.net> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/154 X-Sequence-Number: 6633 > I'm trying to fetch a table (simple select * from table) which is 102 > columns and some 3.5 million rows. When running this I always end up > having a "out of memory". (when I put a where statement or a limit in the > SQL, it runs fine). I've tried tweaking the settings for the odbc setting > in windows (is windows xp) and upgraded to version 8.01.01.02 (even tried > to 103 snapshot), but the problem remains. I've attached both log files > created by the odbc driver. I hope someone can give me some hints on way > this is happening. I'm accessing the odbc dsn from within SAS 9.1. Hello, I know about this limitation. There is problem ODBC keep all rows in memory (+ result from libpq = 2 x result). Please try check Use Declare/Fetch option. There is no twice result in memory in psqlODBC. If it doesn't help you can try older releases which mayde do not do this. Please try 8.00.X or even 7.03.209 (if you find it somewhere). I know we're suggesting 8.01.X but few people work with so big datasets. You can buy more memory too (only as quick hack if you need it fast). We have a lot of bug reports (and so few developers) so I don't know when we focus on this problem. Regards, Luf