From: Alvaro Herrera <alvherre@commandprompt.com>
To: Crowson, Sarah J Ms (Contractor) Northrop Grumman <Sarah.Crowson@us.army.mil>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Fatal: 2149478 (UNCLASSIFIED)
Date: Thu, 11 May 2006 11:51:46 -0400
Message-ID: <20060511155146.GE9051@surnet.cl> (raw)
In-Reply-To: <E8F27C3FF3273A4FBD8A3D41F2EAD5330A140AF8@leavb1doimexs3.leavenworth.army.mil>
References: <E8F27C3FF3273A4FBD8A3D41F2EAD5330A140AF8@leavb1doimexs3.leavenworth.army.mil>
Crowson, Sarah J Ms (Contractor) Northrop Grumman wrote:
> I am trying to set up my postgresql.conf file for Postgres 8.1. I am
> setting up the maintenance_work_mem (this has also happened with the
> work_mem) and I receive this error:
> Fatal: 2149478 is outside the valid range for parameter
> "maintenance_work_mem" ............
Valid values for that parameter is INT_MAX / 1024. INT_MAX is defined
here as
$ grep 'define.* INT_MAX' /usr/include/limits.h
# define INT_MAX 2147483647
So that puts the maximum at 2097151, which you are exceeding. This
assume your platform is similar to mine (size_t == 4 bytes).
$ dc
2147483647 1024 / p
2097151
Note the size is measured in kilobytes.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: alvherre@commandprompt.com, Sarah.Crowson@us.army.mil
Subject: Re: Fatal: 2149478 (UNCLASSIFIED)
In-Reply-To: <20060511155146.GE9051@surnet.cl>
References: <E8F27C3FF3273A4FBD8A3D41F2EAD5330A140AF8@leavb1doimexs3.leavenworth.army.mil> <20060511155146.GE9051@surnet.cl>
* 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