Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B18359FA20E for ; Tue, 12 Dec 2006 04:19:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 75368-01 for ; Tue, 12 Dec 2006 04:19:28 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id D51DA9F946C for ; Tue, 12 Dec 2006 04:19:27 -0400 (AST) Received: (qmail 32466 invoked from network); 12 Dec 2006 17:19:25 +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 17:19:25 +0900 Message-ID: <457E660E.3010107@tpf.co.jp> Date: Tue, 12 Dec 2006 17:19:26 +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: <610562.34714.qm@web31801.mail.mud.yahoo.com> In-Reply-To: <610562.34714.qm@web31801.mail.mud.yahoo.com> 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/40 X-Sequence-Number: 8487 Richard Broersma Jr wrote: >> It seems almost impossible for the driver to solve the problems perfectly. >> Essentially it's a problem of the rule system. > > Yes, I was able to reproduce these bad results from within psql. I take it that this is a well > know limitation of the rule system or should I try reporting it with my simple test case? I've had little experience with the PostgreSQL rule system. Someone with much experience may have the solution. Please report the problem to the other MLs. > My next question, is it possible to create an updatable view using triggers on a instead of rules? AFAIK it's impossible though I'm not sure. > postgres=# select * from vwife; > id | name | dresssize > ----+---------+----------- > 3 | dodie | 13 > 4 | heather | 10 > 2 | katie | 11 > (3 rows) > > postgres=# update vwife > set name = 'Katheryn', > dresssize = 12 > where (id,name,dresssize)=(2,'katie',11); > UPDATE 0 > > postgres=# select * from vwife; > id | name | dresssize > ----+----------+----------- > 3 | dodie | 13 > 4 | heather | 10 > 2 | Katheryn | 11 > ^^^^^^^^ <-- update 0 is false > (3 rows) > > Partial updates is a very bad thing. Yes it's a disaster. regards, Hiroshi Inoue