Re: Queries using rules show no rows modified? - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject Re: Queries using rules show no rows modified?
Date
Msg-id 3CDC752E.3AE5D8FD@tpf.co.jp
Whole thread Raw
In response to Re: Queries using rules show no rows modified?  (Jan Wieck <janwieck@yahoo.com>)
List pgsql-hackers
Jan Wieck wrote:
> 
> Hiroshi Inoue wrote:
> > Tom Lane wrote:
> > >
> >
> > What should the backends return for complicated rewrites ?
> > And how should/could clients handle the results ?
> > It doesn't seem easy to me and it seems a flaw of rule
> > system. Honestly I don't think that the psqlodbc driver
> > can guarantee to handle such cases properly.
> > However both Ron's case and Michael's one are ordinary
> > updatable views. If we can't handle the case properly,
> > we could never recommend users to use (updatable) views.
> 
>     The  fact  that our rule system is that powerful that you can
>     have multi-action rules is a flaw ... awe.

There's always a plus and a minus.
For generic applications the powerfulness is
a nuisance in a sense because it is difficult
for them to understand the intension of 
complicated rewrites( and triggers as you
pointed out). 
I don't think every application can handle
every case. The main point may be how the
applications can judge if they can handle
individual cases.

regards,
Hiroshi Inouehttp://w2422.nsk.ne.jp/~inoue/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Making the regression tests locale-proof
Next
From: Tatsuo Ishii
Date:
Subject: Re: [BUGS] Bug #659: lower()/upper() bug on ->multibyte<- DB