1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-17 06:41:24 +03:00

We haven't had a fixed limit on rule recursion depth since 7.3 ...

but the documentation still said so.
This commit is contained in:
Tom Lane 2005-01-29 23:46:16 +00:00
parent ae8db9a7ab
commit f3610577bd

View File

@ -1,4 +1,4 @@
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/rules.sgml,v 1.31 2003/11/01 01:56:29 petere Exp $ --> <!-- $Header: /cvsroot/pgsql/doc/src/sgml/rules.sgml,v 1.31.2.1 2005/01/29 23:46:16 tgl Exp $ -->
<Chapter Id="rules"> <Chapter Id="rules">
<Title>The Rule System</Title> <Title>The Rule System</Title>
@ -1000,12 +1000,11 @@ CREATE RULE <replaceable>rule_name</> AS ON <replaceable>event</>
The query trees generated from rule actions are thrown into the The query trees generated from rule actions are thrown into the
rewrite system again, and maybe more rules get applied resulting rewrite system again, and maybe more rules get applied resulting
in more or less query trees. in more or less query trees.
So the query trees in the rule actions must have either a different command type So a rule's actions must have either a different
or a different result relation, otherwise, this recursive process will end up in a loop. command type or a different result relation than the rule itself is
There is a fixed recursion limit of currently 100 iterations. on, otherwise this recursive process will end up in an infinite loop.
If after 100 iterations there are still update rules to apply, the (Recursive expansion of a rule will be detected and reported as an
rule system assumes a loop over multiple rule definitions and reports error.)
an error.
</Para> </Para>
<Para> <Para>