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 10734.1072887649@sss.pgh.pa.us
Whole thread Raw
In response to Re: Preventing stack-overflow crashes (improving on max_expr_depth)  (Gaetano Mendola <mendola@bigfoot.com>)
Responses Re: Preventing stack-overflow crashes (improving on
Re: Preventing stack-overflow crashes (improving on
List pgsql-hackers
Gaetano Mendola <mendola@bigfoot.com> writes:
> Is ABS enough on a 64-bit architecture ?

That was pseudocode, I wasn't actually planning to rely on a function.
Something more like
long    diff;
diff = stack_base_ptr - &stack_top_loc;if (diff < 0)    diff = -diff;if (diff > max)    elog ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: cache in plpgsql
Next
From: ivan
Date:
Subject: Re: cache in plpgsql