Check for interrupts and stack overflow during rule/view dumps.
Since ruleutils.c recurses, it could be driven to stack overflow by
deeply nested constructs. Very large queries might also take long
enough to deparse that a check for interrupts seems like a good idea.
Stick appropriate tests into a couple of key places.
Noted by Greg Stark. Back-patch to all supported branches.
Branch
------
REL9_0_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/c4252ec43cd95b20b278f023c3616eb39dcd2b8b
Modified Files
--------------
src/backend/utils/adt/ruleutils.c | 13 +++++++++++++
1 file changed, 13 insertions(+)