-
- Downloads
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.)
Showing
- doc/src/sgml/rules.sgml 3 additions, 3 deletionsdoc/src/sgml/rules.sgml
- src/backend/rewrite/rewriteHandler.c 82 additions, 122 deletionssrc/backend/rewrite/rewriteHandler.c
- src/test/regress/expected/rules.out 17 additions, 14 deletionssrc/test/regress/expected/rules.out
- src/test/regress/sql/rules.sql 7 additions, 4 deletionssrc/test/regress/sql/rules.sql
Loading
Please register or sign in to comment