Check for interrupts and stack overflow during rule/view dumps.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f49df9150b9a00f7934f025677975e2396efebcd
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-04-30T17:46:29Z
Releases: 8.4.22
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.

Files

PathChange+/−
src/backend/utils/adt/ruleutils.c modified +13 −0