Re: Rule system and unsucessful updates.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Rule system and unsucessful updates.
Дата
Msg-id 9674.1137433306@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Rule system and unsucessful updates.  (Matthew Schumacher <matt.s@aptalaska.net>)
Ответы Re: Rule system and unsucessful updates.  (Matthew Schumacher <matt.s@aptalaska.net>)
Список pgsql-general
Matthew Schumacher <matt.s@aptalaska.net> writes:
> I'm having trouble getting the rule system to work on updates that do
> not match the where clause.

You did not say what you mean by "doesn't work", but what I suspect you
are getting bit by is that ON UPDATE rules fire before the original
query is done.  By the time the original query executes, you've inserted
a row into accounting_tab and so its added condition fails.

            regards, tom lane

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

Предыдущее
От: Sergey Moiseev
Дата:
Сообщение: Re: Create/Erase 5000 Tables in PostGRE SQL in execution
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Better way to check for getaddrinfo function.