Re: Can postgresql accept mutliple connections in the same

From: Dru <andru(at)treshna(dot)com>
To: Zeugswetter Andreas DAZ SD <ZeugswetterA(at)spardat(dot)at>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Can postgresql accept mutliple connections in the same
Date: 2004-11-23 00:52:04
Message-ID: 41A289B4.4010406@treshna.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Zeugswetter Andreas DAZ SD wrote:

>>>I am running of postgresql database servers with generally 30-50 users
>>>at a time per server. I have noticed one thing for web based databases
>>>that they fail to initialse a pg_connection connection every now and
>>>again and return no error message at all.
>>>
>>>
>
>I am thinking of the PG_SOMAXCONN maximum connects in the queue
>of the listen socket. That would only be visible to the client app,
>and would mainly happen when load is high so that postmaster cannot fork
>new backends fast enough. And if the client does not properly report ...
>IIRC some systems have a max of 5.
>
>Andreas
>
>
PG_SOMAXCONN gets its defination from pg_config_manual.h?
I'm using debian and its still set to 10000 here.
I did check though the logs and didn't see any "failed to listen on
server socket:"
errors which i assume would be generated when it hits that max.
I am thinking the problem could lie with php though there code looks
very clear cut.
I'll add my own debugging output to php and track its connection process and
see i can find out where it fails.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Sabino Mullane 2004-11-23 02:27:00 Re: How to check the postgresql version
Previous Message Tom Lane 2004-11-23 00:46:49 Re: [Testperf-general] Re: ExclusiveLock