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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Check for interrupts and stack overflow during rule/view dumps.
Date: 2014-04-30 17:46:53
Message-ID: E1WfYar-0007Nu-R9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3897ee9b1fe5000552e38b325130ece9a2dfa0d0

Modified Files
--------------
src/backend/utils/adt/ruleutils.c | 13 +++++++++++++
1 file changed, 13 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-04-30 21:31:01 pgsql: Rationalize common/relpath.[hc].
Previous Message Tom Lane 2014-04-30 17:26:38 pgsql: Reduce indentation/parenthesization of set operations in rule/vi