Received: from orion3.ori-ind.com (IDENT:root@[206.81.197.190]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA85051 for ; Wed, 30 Jun 1999 14:51:02 -0400 (EDT) (envelope-from ken@ori-ind.com) Received: from ken (stimpy.ori-ind.com [192.168.61.96]) by orion3.ori-ind.com (8.8.7/8.8.7) with SMTP id MAA02688 for ; Wed, 30 Jun 1999 12:00:10 -0700 Message-Id: <3.0.1.32.19990630115109.00ba55d0@ori-ind.com> X-Sender: ken@ori-ind.com X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Wed, 30 Jun 1999 11:51:09 -0700 To: pgsql-interfaces@postgreSQL.org From: Byron Nikolaidis (by way of "Ken J. Wright" ) Subject: Re: [INTERFACES] Use Declare/Fetch option Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" An old posting for JT... Hiroshi Inoue wrote: > Hello all, > > I have a question about psqlodbc driver. > Now the default setting for "Use Declare/Fetch" is false. > > In MVCC thanks to Vadim,readers block no writers. > So we can change the [Use Declare/Fetch] option to true ? > And if so,it's effective ? > All you say is correct. It probably could go back to true. But I think some people would probably prefer it stay false, because there is more odbc functionality provided with this setting. For example, when the option is false, the entire SQLExtendedFetch functionality is supported (prev,first,last,next,absolute,relative,bookmark). When the Declare/Fetch option is true, only fetch "next" is supported. There are more things like this. If you have extremely large result sets, then setting the option to true would prevent the driver from sucking down all your memory. And when the MVCC is available, the problem of locking rows won't be a problem anymore. For small to medium result sets, setting the option to false will probably result in faster performance. A future enhancement I have in mind for the driver is using both memory and files for caching large result sets and/or using a combination of both kinds of tuple access. Byron > Thanks. > > Hiroshi Inoue > Inoue@tpf.co.jp