Re: [GENERAL] Security implications of (plpgsql) functions

Joe Conway <mail@joeconway.com>

From: Joe Conway <mail@joeconway.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>, Marcin Owsiany <marcin@owsiany.pl>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2002-10-21T16:20:36Z
Lists: pgsql-hackers, pgsql-general
Tom Lane wrote:
> A depth limit for PL-function recursion is perhaps feasible, but I can't
> say that I care for it a whole lot ... anyone have better ideas?
> 

Is there any way to recognize infinite recursion by analyzing the saved 
execution tree -- i.e. can we assume that a function that calls itself, with 
the same arguments with which it was called, constitutes infinite recursion?

Joe