orderRules() now a bad idea? - Mailing list pgsql-hackers

From Tom Lane
Subject orderRules() now a bad idea?
Date
Msg-id 22454.1034622788@sss.pgh.pa.us
Whole thread Raw
Responses Re: orderRules() now a bad idea?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
I just noticed that rewriteHandler.c contains a subroutine orderRules()
that reorders the rules for a relation into the ordernon-instead rulesqualified instead rulesunqualified instead rules
This conflicts with the feature we'd added to 7.3 to fire rules in
alphabetical order.  (What will presently happen is they'll be fired
alphabetically in each of these categories.)

I see that the logic in fireRules() assumes that rules are processed in
this order, but that would be fairly easy to fix.  Is there any other
good reason for doing this reordering?  I'd like to remove orderRules()
and implement straight alphabetical ordering.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: Anyone want to assist with the translation of the Advocacy
Next
From: "David De Graff"
Date:
Subject: Postgres-based system to run .org registry?