]> granicus.if.org Git - postgresql/commit
Fix rewrite code so that rules are in fact executed in order by name,
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 19 Oct 2002 19:00:47 +0000 (19:00 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 19 Oct 2002 19:00:47 +0000 (19:00 +0000)
commitc1f91a38e20864c14650794a64d52f2d6c900e0f
tree49580b7e35a35799b5abfbeb0d3de03eab754744
parent757b98fda828275443dfdf6e220001c9d497133a
Fix rewrite code so that rules are in fact executed in order by name,
rather than being reordered according to INSTEAD attribute for
implementation convenience.
Also, increase compiled-in recursion depth limit from 10 to 100 rewrite
cycles.  10 seems pretty marginal for situations where multiple rules
exist for the same query.  There was a complaint about this recently,
so I'm going to bump it up.  (Perhaps we should make the limit a GUC
parameter, but that's too close to being a new feature to do in beta.)
doc/src/sgml/rules.sgml
src/backend/rewrite/rewriteHandler.c
src/test/regress/expected/rules.out
src/test/regress/sql/rules.sql