Suresh <suiyengar(at)yahoo(dot)com> writes:
> Why is check_stack_depth function enforced in context of evaluating expressions in PostgreSQL ? What sort of recursion we are trying to safeguard ?
create function foo(int) returns int as $$
select foo($1) $$ language sql;
select foo(1);
regards, tom lane