Re: Preventing stack-overflow crashes (improving on max_expr_depth) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Preventing stack-overflow crashes (improving on max_expr_depth)
Date
Msg-id 7514.1072844387@sss.pgh.pa.us
Whole thread Raw
In response to Re: Preventing stack-overflow crashes (improving on max_expr_depth)  (Mike Mascari <mascarm@mascari.com>)
List pgsql-hackers
Mike Mascari <mascarm@mascari.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


pgsql-hackers by date:

Previous
From: Mike Mascari
Date:
Subject: Re: Preventing stack-overflow crashes (improving on max_expr_depth)
Next
From: "Dave Page"
Date:
Subject: Re: [PATCHES] Quoting of psql \d output