Re: order in which rules are executed

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: order in which rules are executed
Дата
Msg-id 20100728182336.GC21214@fetter.org
обсуждение исходный текст
Ответ на order in which rules are executed  (Ranjeeth Nagarajan <mnranjeeth@gmail.com>)
Список pgsql-general
On Wed, Jul 28, 2010 at 10:16:45PM +0530, Ranjeeth Nagarajan wrote:
> Hello All,
>
> I have the below query regarding Rules in PostgreSQL:
>
> If I have a table which has multiple rules defined, are the rules
> executed in the order in which they are defined?
>
> Or are they executed in some random order?

They're executed in alphabetical order, to the extent that that is
deterministic, which is not very, and that's not even the wackiest
thing about them.  If you have any alternative of any nature, do NOT
use rules.

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: Inheritance and trigger/FK propagation
Следующее
От: Otandeka Simon Peter
Дата:
Сообщение: Re: How Big is Too Big for Tables?