X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A18865366D for ; Mon, 11 Apr 2005 15:19:06 -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 21785-01 for ; Mon, 11 Apr 2005 18:19:00 +0000 (GMT) Received: from fep32-app.kolumbus.fi (fep32-0.kolumbus.fi [193.229.0.63]) by svr1.postgresql.org (Postfix) with ESMTP id D389C52A50 for ; Mon, 11 Apr 2005 15:18:58 -0300 (ADT) Received: from [192.168.1.103] (really [84.231.180.124]) by fep32-app.kolumbus.fi with ESMTP id <20050411181858.JOKG31.fep32-app.kolumbus.fi@[192.168.1.103]> for ; Mon, 11 Apr 2005 21:18:58 +0300 Message-ID: <425ABF88.7040709@kolumbus.fi> Date: Mon, 11 Apr 2005 21:18:48 +0300 From: Marko Ristola User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050324 Debian/1.7.6-1 X-Accept-Language: en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: How can I configure the postgresql odbc to return 1 row References: <20050411151156.83707.qmail@web20823.mail.yahoo.com> In-Reply-To: <20050411151156.83707.qmail@web20823.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.343 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/26 X-Sequence-Number: 5185 You can use in the odbc.ini configuration the following definitions: Fetch = 2048 UseDeclareFetch = 1 "Fetch" defines the number of rows to fetch at a time. UseDeclareFetch activates the feature. Regards, Marko Ristola Jeff Eckermann wrote: >--- Jerry Lam wrote: > > >>Hi, >> >>Is it possible to ask postgresql odbc driver to >>fetch the resulsets from the table one at a time >>instead of fetching all millions rows into memory? >> >> > >Perhaps setting the "Use declare/fetch" driver option >to true will help you. This will cause a server side >cursor to be used, which will return the rows in >blocks. What controls the size of the blocks, I have >no idea; I've never messed with that. > > > >>Thank you, >> >>Jerry >> >>---------------------------(end of >>broadcast)--------------------------- >>TIP 5: Have you checked our extensive FAQ? >> >> http://www.postgresql.org/docs/faq >> >> >> > > > >__________________________________ >Do you Yahoo!? >Yahoo! Small Business - Try our new resources site! >http://smallbusiness.yahoo.com/resources/ > >---------------------------(end of broadcast)--------------------------- >TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > >