Re: running two servers on one machine - Mailing list pgsql-general

From Eric Smith
Subject Re: running two servers on one machine
Date
Msg-id 9B49836A-2A87-4ABC-929C-D58D4638426D@mac.com
Whole thread Raw
In response to Re: running two servers on one machine  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: running two servers on one machine  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
That's it!

Log file says "could not create shared memory segment".  It also says
that I should change max_connections or shared_buffers.

Error message claims that max_connections is 23, but postgresql.conf
has this listed as 20.
Error message claims that shared_buffers is 300, but postgresql.conf
has this listed as 2400kB.

What the heck is going on here?  (no, the lines in the conf file are
not commented out).  How do I enforce the conf file entries?

Thanks,
Eric


On Mar 29, 2009, at 8:19 PM, Tom Lane wrote:

> Eric Smith <eric_h_smith@mac.com> writes:
>> Yes, if I start one, but not the other, the process works just great.
>> It's only when trying to run both that I have a problem.
>
> Have you looked into the postmaster logfile?
>
> One likely idea is that you don't have shmall cranked up high enough
> for two servers, which'd result in something like
>
> FATAL:  could not create shared memory segment: Cannot allocate memory
>
> in the postmaster log.
>
>             regards, tom lane


pgsql-general by date:

Previous
From: jc_mich
Date:
Subject: PL/PGSQL arithmetic errors
Next
From: Ow Mun Heng
Date:
Subject: partial TEXT search on an index