Search Postgresql Archives

Re: Unable to connect to PostgreSQL server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You may also want to look into your php.ini settings.

pgsql.max_persistent pgsql.max_links pgsql.auto_reset_persistent and
PGSQL_CONNECT_FORCE_NEW are options you would want to check into.


> Look in data/postgres.conf
> 
> You will find a line there such as max_connections = 50 you will also need to
> check that shared_buffers is at least twice the max_connections.
> 
> You can also start Postmaster with -B nBuffers -N maxbackends
> 
> 
> On 20/4/2006 17:41, "Martin Kuria" <martinkuria@xxxxxxxxxxx> wrote:
> 
>> hi,
>> 
>> I have a problem with my postgresql database it always gives me an error:
>> 
>> Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL
>> server: FATAL: sorry, too many clients already in ~/includes/DbConnector.php
>> on line 27
>> 
>> Please advice how I can manage my database to handle enough connections
>> please advice.
>> 
>> +-----------------------------------------------------+
>> | Martin W. Kuria (Mr.) martin.kuria@xxxxxxxx
>> +----------------------------------------------------+
>> 
>> _________________________________________________________________
>> Express yourself instantly with MSN Messenger! Download today it's FREE!
>> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>> 
>> 
>> ---------------------------(end of broadcast)---------------------------
>> TIP 6: explain analyze is your friend
>> 
> 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux