From: Pandurangan R S <pandurangan.r.s@gmail.com>
To: Anne M. Hammond <hammond@solarz.colorado.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: initdb fails
Date: Wed, 7 Dec 2005 14:49:26 +0530
Message-ID: <5e744e3d0512070119l6fb52eaao765d54277838f62f@mail.gmail.com> (raw)
In-Reply-To: <Pine.GSO.4.44.0512062254410.11244-100000@lcd.colorado.edu>
References: <Pine.GSO.4.44.0512062254410.11244-100000@lcd.colorado.edu>
Hi,
The following link will help you
http://www.powerpostgresql.com/Downloads/annotated_conf_80.html
On 12/7/05, Anne M. Hammond <hammond@solarz.colorado.edu> wrote:
> This is running on a Solaris 8 machine.
>
> I installed V 7.4.7 to use with OpenACS.
>
> lcd[34]% /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
> ...
> selecting default max_connections... 10
> selecting default shared_buffers... 50
> creating configuration files... ok
> creating template1 database in /usr/local/pgsql/data/base/1... FATAL:
> could not create shared memory segment: Invalid argument
> DETAIL: Failed system call was shmget(key=1, size=1081344, 03600).
> ...
>
> lcd[36]% sysdef -i | grep SHMMAX
> 1048576 max shared memory segment size (SHMMAX)
>
> -----------
> So the shared memory request is greater than the SHMMAX in
> the kernel. If I just wanted to use a smaller number of shared_buffers
> (24), I tried editing /usr/local/pgsql/data/pgsql.conf.
>
> But initdb -D /usr/local/pgsql/data
> finds that the directory is not empty and will not create the databases.
> I have also tried
> setenv PGOPTIONS="shared_buffers = 24"
> and tried initdb, but initdb uses the default number.
>
> Could you tell me how to set shared_buffers from the default so
> that a smaller shared memory segment will be requested?
>
> If you could also tell me how to set the max_connections to a value
> different from the default, that would be great.
>
> Any advice appreciated.
>
> Anne Hammond, University of Colorado at Boulder
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>
--
Regards
Pandu
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: pandurangan.r.s@gmail.com, hammond@solarz.colorado.edu
Subject: Re: initdb fails
In-Reply-To: <5e744e3d0512070119l6fb52eaao765d54277838f62f@mail.gmail.com>
References: <Pine.GSO.4.44.0512062254410.11244-100000@lcd.colorado.edu> <5e744e3d0512070119l6fb52eaao765d54277838f62f@mail.gmail.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