Re: initdb fails - Mailing list pgsql-admin

From Tom Lane
Subject Re: initdb fails
Date
Msg-id 28800.1133966119@sss.pgh.pa.us
Whole thread Raw
In response to initdb fails  ("Anne M. Hammond" <hammond@solarz.Colorado.EDU>)
List pgsql-admin
"Anne M. Hammond" <hammond@lcd.Colorado.EDU> writes:
> 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.

You're going to have to increase SHMMAX anyway, so you might as well
just do that, rather than trying to outflank initdb.  PG's performance
with any less than several hundred shared buffers is just too awful to
consider using.

I haven't done this on Solaris personally, but according to our docs
http://www.postgresql.org/docs/7.4/static/kernel-resources.html
it's just a matter of editing /etc/system and rebooting.

            regards, tom lane

pgsql-admin by date:

Previous
From: Guido Barosio
Date:
Subject: Re: Checkpoint...
Next
From: Tom Lane
Date:
Subject: Re: reg:file transfer error