]> granicus.if.org Git - postgresql/commit
Check for interrupts and stack overflow during rule/view dumps.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Apr 2014 17:46:29 +0000 (13:46 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Apr 2014 17:46:29 +0000 (13:46 -0400)
commitf49df9150b9a00f7934f025677975e2396efebcd
tree6e527dcd73b9037ad7b2de554d8b1bb8a58b5727
parente3f273ff6220dfd41eb155a4ed9fdf27b975794c
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.
src/backend/utils/adt/ruleutils.c