Re: Backend-internal SPI operations

Поиск
Список
Период
Сортировка
От Mark Hollomon
Тема Re: Backend-internal SPI operations
Дата
Msg-id 39ACFE8E.CCFAB07B@americasm01.nt.com
обсуждение исходный текст
Ответ на Re: Backend-internal SPI operations  (Jan Wieck <janwieck@Yahoo.com>)
Ответы Re: Backend-internal SPI operations  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Jan Wieck wrote:
> 
> Tom Lane wrote:
> > "Mark Hollomon" <mhh@nortelnetworks.com> writes:
> > > Just out of curiousity, is there technical reason there isn't
> > > a (say) relisview attribute to pg_class?
> >
> > That might indeed be the most reasonable way to attack it, rather
> > than having to go messing about looking for a matching rule.
> > (Jan, any thoughts here?)
> 
>     The  right  way  IMHO would be to give views another relkind.
>     Then we could easily
> 
>     1.  detect if the final query after rewriting still tries  to
>         INSERT/UPDATE/DELETE  a  view  -  i.e.  "missing  rewrite
>         rule(s)".

This appeals to me. The current silent no-op behavior of INSERT/DELETE on a view
is annoying.


-- 

Mark Hollomon
mhh@nortelnetworks.com
ESN 451-9008 (302)454-9008


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Mark Hollomon"
Дата:
Сообщение: Re: disallow LOCK on a view - the Tom Lane remix
Следующее
От: Michael Meskes
Дата:
Сообщение: How to store unicode?