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 3FCEF9DC841 for ; Tue, 17 Jan 2006 05:49:23 -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 77493-07 for ; Tue, 17 Jan 2006 05:49:24 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from latenight.fiasco.org.il (latenight.fiasco.org.il [192.117.122.39]) by postgresql.org (Postfix) with SMTP id 406B89DC879 for ; Tue, 17 Jan 2006 05:49:19 -0400 (AST) Received: (qmail 28190 invoked from network); 17 Jan 2006 09:49:20 -0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 17 Jan 2006 09:49:20 -0000 Message-ID: <43CCBDA0.2070805@shemesh.biz> Date: Tue, 17 Jan 2006 11:49:20 +0200 From: Shachar Shemesh User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Postgresql ODBC list Subject: Updates on updates Content-Type: text/plain; charset=windows-1255 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200601/156 X-Sequence-Number: 6971 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