use superuser connection from php

From: "pobox(at)verysmall(dot)org" <pobox(at)verysmall(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: use superuser connection from php
Date: 2007-04-02 09:33:50
Message-ID: 4610CDFE.7090607@verysmall.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hello,

we have a php application which gets from time to time database errors
which look like there are not enough connections (we have 100
connections allowed to postgresql) -

i read that there are two db connections reserved for su. is there a way
to use them from php in order to check if the database is really out of
connections (with - 'SELECT count(*) FROM pg_stat_activity') or the
problem is different?

thanks,
iv

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shoaib Mir 2007-04-02 10:00:40 Re: Increasing the shared memory
Previous Message Marius ROMAN 2007-04-02 09:32:18 Re: Increasing the shared memory