Not Enough Connections

Started by Hunter Hillegasabout 23 years ago4 messagesgeneral
Jump to latest
#1Hunter Hillegas
lists@lastonepicked.com

We just upgraded from 7.2.2 to 7.3.2. Since the upgrade I am having trouble
getting clients connected to the server. Basically I am running out of
connections.

The postmaster was originally started with the default settings. Since then
the limit has been upped to 200 connections (along with some other stuff
like shared mem stuff) and I did a pg_ctl reload to get the new settings in
there...

Still getting the FATAL error about connections. Running ps shows about 36
processes related to postgres, certainly not near 200 connections.

Any ideas?

Thanks,
Hunter

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Hunter Hillegas (#1)
Re: Not Enough Connections

Hunter Hillegas <lists@lastonepicked.com> writes:

The postmaster was originally started with the default settings. Since then
the limit has been upped to 200 connections (along with some other stuff
like shared mem stuff) and I did a pg_ctl reload to get the new settings in
there...

pg_ctl reload does not suffice to alter max_connections; that can only
be set at postmaster startup. Shut down and restart.

regards, tom lane

#3Lonni J Friedman
lfriedman@vasoftware.com
In reply to: Tom Lane (#2)
Re: Not Enough Connections

On Mon, 10 Mar 2003, Tom Lane wrote:

Hunter Hillegas <lists@lastonepicked.com> writes:

The postmaster was originally started with the default settings. Since then
the limit has been upped to 200 connections (along with some other stuff
like shared mem stuff) and I did a pg_ctl reload to get the new settings in
there...

pg_ctl reload does not suffice to alter max_connections; that can only
be set at postmaster startup. Shut down and restart.

I read somewhere a while ago that the upper value of max_connections is
hardcoded at compile time, and that it can only be reduced via the
configuration file. Is this true, or did i misunderstand?

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Lonni J Friedman (#3)
Re: Not Enough Connections

Lonni J Friedman <lfriedman@vasoftware.com> writes:

I read somewhere a while ago that the upper value of max_connections is
hardcoded at compile time, and that it can only be reduced via the
configuration file. Is this true, or did i misunderstand?

You misunderstood.

There once was a compile-time upper limit on max_connections, but that
vanished quite some time ago; and even back then it was substantially
larger than most people used.

regards, tom lane