Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 8E6399F9386 for ; Mon, 11 Dec 2006 23:41:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 98116-03 for ; Mon, 11 Dec 2006 23:41:40 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sd.tpf.co.jp (dns.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id D9AB49F9357 for ; Mon, 11 Dec 2006 23:41:45 -0400 (AST) Received: (qmail 3124 invoked from network); 12 Dec 2006 12:41:43 +0900 Received: from unknown (HELO ?100.0.32.170?) (100.0.32.170) by sd2.tpf-fw-c.co.jp with SMTP; 12 Dec 2006 12:41:43 +0900 Message-ID: <457E24F8.1080301@tpf.co.jp> Date: Tue, 12 Dec 2006 12:41:44 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Richard Broersma Jr CC: pgsql-odbc@postgresql.org Subject: Re: Update-able View linked to Access References: <860305.95549.qm@web31810.mail.mud.yahoo.com> <457E1889.2060305@tpf.co.jp> In-Reply-To: <457E1889.2060305@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/37 X-Sequence-Number: 8484 Hiroshi Inoue wrote: > Richard Broersma Jr wrote: >>> Please change the field name of B.ctid from hasbandctid to ctid. >>> The name should be "ctid" for the driver to detect the field is for >>> versioning. >>> A.ctid isn't needed. >> >> It works now! However, I have a question. If I have a view with more >> than two joined tables will >> i need to reference the ctid from each table after the first update >> statement? > > The ctid of the target table of the rule's last statement should be > referenced. Please note this is not a perfect solution. For example, the change of table A can't be detected using the "ctid". If you update the link table with where clause including "name" field and update the "name" and the "tiesize" field, the "tiesize" may not be updated..... It seems almost impossible for the driver to solve the problems perfectly. Essentially it's a problem of the rule system. regards, Hiroshi Inoue