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

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

Commit: 001bb9f3ed05e7c370151f7aad3a83447c52c157
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-12-10T16:12:43Z
Releases: 12.0
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

Files

Discussion