rules and command status question

Поиск
Список
Период
Сортировка
От Josh Harrison
Тема rules and command status question
Дата
Msg-id 8d89ea1d0709250619h27c2327cubab9cbc4d1a2755d@mail.gmail.com
обсуждение исходный текст
Ответы Re: rules and command status question  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
Hello,
I have a question in the postgres document chapter 34. Rules and Command Status.
The last paragraph of that page says that

"The programmer can ensure that any desired INSTEAD rule is the one that sets the command status in the second case, by giving it the alphabetically last rule name among the active rules, so that it gets applied last."

Can someone help me understand what this means. How can I change my INSERT ...INSTEAD rule so that query returns the number of rows inserted ( instead of 0 rows inserted).

Thanks in advance
Josh

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

Предыдущее
От: "Ardian Xharra"
Дата:
Сообщение: Re: Why the ERROR: duplicate key violates unique constraint "master_pkey" is raised? - Is this a Bug?
Следующее
От: Brad Nicholson
Дата:
Сообщение: Re: lowering impact of checkpoints