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

From Mike Mascari
Subject Re: Preventing stack-overflow crashes (improving on max_expr_depth)
Date
Msg-id 3FF23E94.9030503@mascari.com
Whole thread Raw
In response to Re: Preventing stack-overflow crashes (improving on max_expr_depth)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Preventing stack-overflow crashes (improving on max_expr_depth)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:

>Sounds like a great approach to me.  If it doesn't work, we will find
>out during beta testing.
>  
>

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?

Mike Mascari
mascarm@mascari.com

>Tom Lane wrote:
>  
>
>>It occurred to me today that it would not be difficult to implement a
>>direct check on the physical size of the execution stack.  
>>




pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Preventing stack-overflow crashes (improving on max_expr_depth)
Next
From: Tom Lane
Date:
Subject: Re: Preventing stack-overflow crashes (improving on max_expr_depth)