Gaetano Mendola <mendola(at)bigfoot(dot)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