From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Naoya Anzai <anzai-naoya@mxu.nes.nec.co.jp>
Cc: pgsql-docs@postgresql.org, Akio Iwaasa <iwaasa@mxs.nes.nec.co.jp>
Subject: Re: Abount max_stack_depth's default value
Date: Thu, 24 Nov 2011 22:30:16 +0200
Message-ID: <4ECEA958.8050703@enterprisedb.com> (raw)
In-Reply-To: <50CCAA8EE67154anzai-naoya@mxu.nes.nec.co.jp>
References: <50CCAA8EE67154anzai-naoya@mxu.nes.nec.co.jp>
On 24.11.2011 11:53, Naoya Anzai wrote:
> Hi,
>
> On http://www.postgresql.org/docs/9.1/interactive/runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-...
> max_stack_depth's default setting was wrote it is two megabytes. But,I think that this explanation is not true.
> In my environment, When "`ulimit -s` - 512KB" value is less than 2MB, this value is set up as a default value.
> And I also notice that If "ulimit -s" value is "unlimited", then "100KB" is set up on the PostgreSQL 9.0 and less.
> So,I think that you should write that max_stack_depth's default setting depends on stack size when it is less than 2.5MB,
> and "100KB" is set up on the PostgreSQL 9.0 and less when stack size is unlimited.
Well, the doc section does say:
"On platforms where PostgreSQL can determine the kernel limit, the
server will not allow this variable to be set to an unsafe value. "
though I agree it's a bit vague. It doesn't explicitly say that on such
platforms, the default value will be chosen automatically. Want to
suggest how to phrase that section in the docs?
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: heikki.linnakangas@enterprisedb.com, anzai-naoya@mxu.nes.nec.co.jp, iwaasa@mxs.nes.nec.co.jp
Subject: Re: Abount max_stack_depth's default value
In-Reply-To: <4ECEA958.8050703@enterprisedb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox