I just noticed that rewriteHandler.c contains a subroutine orderRules() that reorders the rules for a relation into the order non-instead rules qualified instead rules unqualified 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 ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster