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 4088B5379E for ; Mon, 11 Apr 2005 12:12:04 -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 55707-09 for ; Mon, 11 Apr 2005 15:11:58 +0000 (GMT) Received: from web20823.mail.yahoo.com (web20823.mail.yahoo.com [216.136.227.136]) by svr1.postgresql.org (Postfix) with SMTP id D2C9053792 for ; Mon, 11 Apr 2005 12:11:57 -0300 (ADT) Received: (qmail 83709 invoked by uid 60001); 11 Apr 2005 15:11:56 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=aRtbHeQsYC5XMrlL2IXdBsXZ0XPB3hqLB7dbfCspLNMU7B1EBpHkguGZUIdkkdnoDzOm6FhS3puo2TnzcTMJC59RkaeqQZTrLiENu3Zo6QzHrIHz6Wq/h/VR9mxu1Z/iS2U0CLuFQSSPn3If9J7QqrAjDDyBE3lf5ES1W4ZOA4Y= ; Message-ID: <20050411151156.83707.qmail@web20823.mail.yahoo.com> Received: from [24.248.12.141] by web20823.mail.yahoo.com via HTTP; Mon, 11 Apr 2005 08:11:55 PDT Date: Mon, 11 Apr 2005 08:11:55 -0700 (PDT) From: Jeff Eckermann Subject: Re: How can I configure the postgresql odbc to return 1 row at a time? To: Jerry Lam , pgsql-odbc@postgresql.org In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.344 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200504/24 X-Sequence-Number: 5183 --- 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/