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 DDCE49DC981 for ; Tue, 17 Jan 2006 10:56:01 -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 51229-07 for ; Tue, 17 Jan 2006 10:56:05 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gk-us2.us.michelin.com (gk-us2.michelin.com [156.65.14.19]) by postgresql.org (Postfix) with ESMTP id B994D9DC97E for ; Tue, 17 Jan 2006 10:55:58 -0400 (AST) Received: from oncpfxp3-out.onc.michelin.com (unverified [10.21.4.30]) by gk-us2.us.michelin.com (Clearswift SMTPRS 5.1.7) with ESMTP id for ; Tue, 17 Jan 2006 09:55:23 -0500 Received: from ONCMH1.onc.michelin.com (ONCMH1.ONC.MICHELIN.COM [156.65.124.40]) by oncpfxp3-out.onc.michelin.com (Postfix) with ESMTP id 21C571A56E for ; Tue, 17 Jan 2006 09:56:02 -0500 (EST) Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Tue, 17 Jan 2006 09:56:01 -0500 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id IT8S5D00.F3A for ; Tue, 17 Jan 2006 09:56:01 -0500 Received: from [10.43.12.183] (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Tue, 17 Jan 2006 09:56:00 -0500 Message-Id: <43CD057D.6070409@us.michelin.com> Date: Tue, 17 Jan 2006 09:55:57 -0500 From: "Campbell, Greg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Postgresql ODBC list Subject: Re: Updates on updates References: <43CCBDA0.2070805@shemesh.biz> In-Reply-To: <43CCBDA0.2070805@shemesh.biz> Content-Type: multipart/mixed; boundary="------------090606070900050406040608" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.218 required=5 tests=[AWL=0.066, RCVD_IN_WHOIS_INVALID=2.151, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 2.218 X-Spam-Level: ** X-Archive-Number: 200601/162 X-Sequence-Number: 6977 This is a multi-part message in MIME format. --------------090606070900050406040608 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit You say "It seems that much more important to the client than being able to update from the result set is the ability to get most up to date queries for each fetch." Specify "fetch". Is it the returning of one or more records at a time of a cursor? Or is it, the returning of the entire recordset? Also what client environment are in (VB6, Access with DAO, RDO, ADO, Delphi, C++...)(It can effect how I understand you to be using the term Dynaset)? Classically I think of a cursor as a pointer to the recordset I want. I open it and do FETCHes using it, then close it. Then your underlying question is will you see changes made by other users while you have this cursor open. The return question is why is your cursor open so long? More casually one might speak of fetching a set of records. This is nowhere near as specific as the FETCH mentioned previously. If perhaps you have a grid in an user application, and the client wants the data to be "fresh". The underlying question is do you have to run the query again, repeatedly? Or is the question, if you run the query again, will you get the "most up to date" information? Are you treating you application like a local Access database, where you can use a bound form to attach to a table of data, and keep it open and automatically refreshing as long as you like? Or are you treating your application like a client and server application, where you expect to send requests, and get the data in the most expeditions manner possible, keeping transactions short and atomic, almost treating the data transfer as a highly expensive proposition? Perhaps I am out of date on my view of application design. When is the issue ODBC driver capability, and when is it application design? Shachar Shemesh wrote: > Hi list, > > > I had a meeting with my client (the one who wanted update support), and > here are the conclusions: It's a long way ahead. > > > It seems that much more important to the client than being able to > update from the result set is the ability to get most up to date queries > for each fetch. This is a requirement of a "dynaset" view > (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_Dynaset.asp). > Unfortunately, PostgreSQL does not support cursors that are not of type > "sensitive". Even if it did, it does not support cursors that do not > live inside a transaction. It follows, then, that there is no choice for > an ODBC that wishes to implement a dynaset record but to perform a new > query for each and every fetch operation. > > > Things are slightly worse, in fact. Because the ordering of the records > in a dynaset are guarenteed to remain the same as when they were first > fetched, some way of determining whether a specific row has changed (or > was deleted) is required. It is at this point that I have to appologize > to Hiroshi if any tone of dismissivness could have been understood from > my previous email regarding his implementation. Making a dynaset work > without using oids is going to be damn tough. > > > There is one glimmer of hope. The link I gave above claims that we are > allowed to keep, in essence, local copy of the data from the dataset > until a "requery" is done. This means that implementing a dynaset > without huge performance losses is going to be possible (though not easy). > > > This email is mostly so I can update everyone on the current status. I > have not, yet, formed a concerete plan on what my personal actions on > this matter are going to be. I mostly interested to see whether an > interesting discussion forms as a result of these new discoveries. > > > Shachar > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq --------------090606070900050406040608 Content-Type: text/x-vcard; charset=utf-8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard --------------090606070900050406040608--