Skip site navigation (1) Skip section navigation (2)

Re: BUG #5131: The pgsql will lost

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: aihongwei <ufo008ahw(at)163(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5131: The pgsql will lost
Date: 2009-10-22 13:43:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
On Wed, Oct 21, 2009 at 11:23 PM, aihongwei <ufo008ahw(at)163(dot)com> wrote:
> The following bug has been logged online:
> Bug reference:      5131
> Logged by:          aihongwei
> Email address:      ufo008ahw(at)163(dot)com
> PostgreSQL version: 8.0.0
> Operating system:   linux x86_64
> Description:        The pgsql will lost
> Details:
> In x86_64 platform,
> I input command "ulimit -s 2048" to limit the stack size.Then I startup the
> server,and when i do some recursion operation, the pgsql will lost in some
> time.
> It seems that The stack_max_depth does work.
> example:
> CREATE FUNCTION infinite_recurse() returns int as
> 'select infinite_recurse()' language sql;
> select infinite_recurse();

*scratches head*

Well, you haven't really told us what happens when you do this.  Does
it hang up forever?  How long did you wait?  Does it crash?

The default value for max_stack_depth (NOT stack_max_depth) seems to
be 2MB, so setting the system limit to the same value seems like a bad


In response to

pgsql-bugs by date

Next:From: Robert HaasDate: 2009-10-22 14:00:22
Subject: Re: BUG #5130: Failed to run initdb:1
Previous:From: SavitaDate: 2009-10-22 13:02:11
Subject: BUG #5135: sorting order

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group