pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Update-able View linked to Access
Date: Mon, 11 Dec 2006 20:24:55 -0800 (PST)
Message-ID: <610562.34714.qm@web31801.mail.mud.yahoo.com> (raw)
In-Reply-To: <457E24F8.1080301@tpf.co.jp>

> 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?  Now
that I've finially learned to implement rules on a view, now I am deeply concerned about their
relablility.  As you mentioned, the fact that I can get inconsistant updates makes me very
concerned.  I guess they are okey as long as you specify explicit queries that only reference
single column's primary key id, or if the view doesn't span multiple tables.  

My next question, is it possible to create an updatable view using triggers on a instead of rules?
:-) If so, I guess my next task is to learn about plpgsql and triggers. 


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.

Regards,

Richard Broersma Jr.



view thread (9+ messages)  latest in thread

Message-ID: <610562.34714.qm@web31801.mail.mud.yahoo.com>
Permalink:  ../610562.34714.qm@web31801.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/610562.34714.qm@web31801.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: rabroersma@yahoo.com, inoue@tpf.co.jp
  Subject: Re: Update-able View linked to Access
  In-Reply-To: <610562.34714.qm@web31801.mail.mud.yahoo.com>
  References: <457E24F8.1080301@tpf.co.jp> <610562.34714.qm@web31801.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox