Re: any api in libpq to get the number of connections

Поиск
Список
Период
Сортировка
От Shoaib Mir
Тема Re: any api in libpq to get the number of connections
Дата
Msg-id bf54be870612120155o7d91d94dg1d131b0ac2fb9fac@mail.gmail.com
обсуждение исходный текст
Ответ на any api in libpq to get the number of connections  ("surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in>)
Список pgsql-general
This might be of some help using a query like:

select count(*) as NumberOfConn from pg_stat_activity where datname = 'dbname';

--------------
Shoaib Mir
EnterpriseDB ( www.enterprisedb.com)

On 12/12/06, surabhi.ahuja <surabhi.ahuja@iiitb.ac.in> wrote:
 Hi,
is ther any api avaiable in libpq
so that i can get the number of connections that exists with the database
 
thanks,
regards
surabhi
This message has been scanned by the Trend Micro IGSA and found to be free of known security risks.

В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Restore database from files (not dump files)?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: out of memory error on 3 table join