Mike Mascari <mascarm(at)mascari(dot)com> writes:
> Would it make sense to also have a nice little global function and/or
> macro available for the author of C-language recursive functions to
> perform a depth test before recursing?
Yeah, I envision presenting this as a nice little macro along the lines
of CHECK_STACK_OVERFLOW(). The hard part will really be deciding where
it needs to be called.
regards, tom lane