Re: Checking stack depth

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: suresh(at)cse(dot)iitb(dot)ac(dot)in
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Checking stack depth
Date: 2008-10-29 03:20:32
Message-ID: 3869.1225250432@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2008-10-29 03:45:30 Re: BufferAccessStrategy for bulk insert
Previous Message Suresh 2008-10-29 03:16:33 Checking stack depth