Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A89CA475E3E for ; Tue, 5 Nov 2002 05:16:55 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 2572B475DFD for ; Tue, 5 Nov 2002 05:16:54 -0500 (EST) Received: (qmail 19555 invoked from network); 5 Nov 2002 10:16:55 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 5 Nov 2002 10:16:55 -0000 Received: from tpf.co.jp (3d_note1 [126.0.1.61]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id TAA22372; Tue, 5 Nov 2002 19:16:53 +0900 (JST) Message-ID: <3DC79AE2.A32F9CC@tpf.co.jp> Date: Tue, 05 Nov 2002 19:18:10 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Tambet Matiisen Cc: pgsql-odbc@postgresql.org Subject: Re: updatable views and optimistic locking References: <81132473206F3A46A72BD6116E1A06AE1B14A2@black.aprote.com> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/21 X-Sequence-Number: 2198 Tambet Matiisen wrote: > > Hi all! > > We are making a project management application which makes use of VB6 > bound controls and PostgreSQL updatable views. For several reasons we > had to choose client side recordsets, which means we have to use > optimistic locking scheme. Optimistic locking relies on number of > affected records, returned by query. If affected record count is 0, then > locking failed. > > The problem is, that when you define rules for views, all insert, update > and delete statements return affected records 0, regardless if actual > rule statement was successful or not. This of course screws up > optimistic locking. [snip] > And my question is: who should I bother, to have this patch included in > next PostgreSQL release? I consider it extremely useful, especially if > you happen to use bound controls and updatable views. Though my patch isn't applied, another patch to fix the stupid bug is included in the next release. regards, Hiroshi Inoue http://w2422.nsk.ne.jp/~inoue/