Re: Preventing stack-overflow crashes (improving on max_expr_depth)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike Mascari <mascarm(at)mascari(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Preventing stack-overflow crashes (improving on max_expr_depth)
Date: 2003-12-31 04:19:47
Message-ID: 7514.1072844387@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2003-12-31 04:25:08 Re: PostgreSQL speakers needed for OSCON 2004
Previous Message Chris Travers 2003-12-31 04:16:12 Bug and/or feature? Complex data types in tables...