Re: Rule not invoked in 7.1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Rule not invoked in 7.1
Дата
Msg-id 26488.980398409@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Rule not invoked in 7.1  (Kyle <kyle@actarg.com>)
Ответы Re: Rule not invoked in 7.1
Список pgsql-sql
Kyle <kyle@actarg.com> writes:
> ERROR:  Cannot update a view without an appropriate rule.

7.1 insists that you provide an *unconditional* DO INSTEAD rule
for a view.  What do you think was happening on your old database
when the "where old.status = 'appr'" clause wasn't satisfied?
Nothing good I'm afraid.

If you really do need conditional rules, you can satisfy the check
by writing one unconditional DO INSTEAD NOTHING rule and then one
or more conditional non-INSTEAD rules.  But you should think carefully
about what you expect to happen when you use a conditional rule.
        regards, tom lane


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

Предыдущее
От: Som
Дата:
Сообщение: Insertion and Retrieval of BLOB
Следующее
От: Christopher Sawtell
Дата:
Сообщение: Re: SQL Query Results