pgsql: Add stack depth checks to key recursive functions in backend/nod

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add stack depth checks to key recursive functions in backend/nod
Date: 2018-12-10 16:13:04
Message-ID: E1gWOB6-0001xj-HP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add stack depth checks to key recursive functions in backend/nodes/*.c.

Although copyfuncs.c has a check_stack_depth call in its recursion,
equalfuncs.c, outfuncs.c, and readfuncs.c lacked one. This seems
unwise.

Likewise fix planstate_tree_walker(), in branches where that exists.

Discussion: https://postgr.es/m/30253.1544286631@sss.pgh.pa.us

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3af726a1f3bfccd0db3ea15c72e2df4943a17180

Modified Files
--------------
src/backend/nodes/equalfuncs.c | 4 ++++
src/backend/nodes/outfuncs.c | 4 ++++
src/backend/nodes/readfuncs.c | 4 ++++
3 files changed, 12 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2018-12-11 04:20:41 pgsql: Raise some timeouts to 180s, in test code.
Previous Message Tom Lane 2018-12-10 15:44:12 pgsql: Doc: remove obsolete reference to recursive expression evaluatio