Re: [HACKERS] Insert into view

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Insert into view
Дата
Msg-id 20750.943974479@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: [HACKERS] Insert into view  ("Ansley, Michael" <Michael.Ansley@intec.co.za>)
Список pgsql-hackers
"Ansley, Michael" <Michael.Ansley@intec.co.za> writes:
> I suppose that views could be made so that a tuple insert would fail,

I think Jan muttered something about emitting a warning notice for an
attempt to store into a table that has an ON SELECT DO INSTEAD rule but
no ON INSERT rule --- which would imply that you'll never be able to
see the data you're inserting.

This mistake has bitten enough people (including me ;-)) that it seems
a warning might be a good idea.  I'm not sure if I want it to be a hard
error though.  Are there any cases where it'd make sense to allow this?
        regards, tom lane


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

Предыдущее
От: "Ansley, Michael"
Дата:
Сообщение: RE: [HACKERS] Insert into view
Следующее
От: sk.list@comset.net
Дата:
Сообщение: Re: [ADMIN] When postgres will be faster?