X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id A02919FA5CD for ; Thu, 20 Jul 2006 04:10:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 14673-01 for ; Thu, 20 Jul 2006 07:10:04 +0000 (UTC) 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 102B19FA502 for ; Thu, 20 Jul 2006 04:10:03 -0300 (ADT) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k6K79sD5004114; Thu, 20 Jul 2006 09:09:54 +0200 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k6K79r1D004113; Thu, 20 Jul 2006 09:09:53 +0200 Date: Thu, 20 Jul 2006 09:09:53 +0200 From: Ludek Finstrle To: =?utf-8?B?546L5a6d5YW1?= Cc: postgresql odbc Subject: Re: Does psqlodbc support declare/fetch in Un ux? Message-ID: <20060720070953.GA3797@soptik.pzkagis.cz> References: <44BDD4DA.00002E.05831@bj163app24.163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44BDD4DA.00002E.05831@bj163app24.163.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.88.2/1609/Wed Jul 19 14:13:27 2006 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/22 X-Sequence-Number: 7933 > There are 1532240 tuples in pg_largeobject, and their size is about > 3GB. But where I run this code, the client's main memory is exhausted. > It seems that the client try to get all the tuples before it fetches > the first 100. > > What's wrong? How can I fixed it? What connection string? What's the settings in odbc.ini? The first question is if you are using declare/fetch. Could you send us the mylog output? Regards, Luf