Re: order in which rules are executed - Mailing list pgsql-general

From David Fetter
Subject Re: order in which rules are executed
Date
Msg-id 20100728182336.GC21214@fetter.org
Whole thread Raw
In response to order in which rules are executed  (Ranjeeth Nagarajan <mnranjeeth@gmail.com>)
List 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 by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Inheritance and trigger/FK propagation
Next
From: Otandeka Simon Peter
Date:
Subject: Re: How Big is Too Big for Tables?