Tom Lane wrote:
> "Heikki Linnakangas" <heikki@enterprisedb.com> writes:
>> In 8.2, we started to use getrlimit(RLIMIT_STACK, ...) to set
>> max_stack_depth automatically, to a max of 2MB:
>
>> http://archives.postgresql.org/pgsql-hackers/2006-10/msg00389.php
>
>> However, it's not behaving as I expected when the stack limit is set to
>> "unlimited".
>
> Is there really any such thing as "unlimited" stack depth?
No, but I would think it's safe to assume that "unlimited" is greater
than 2MB.
-- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com