Обсуждение: Determining # of active connections

Поиск
Список
Период
Сортировка

Determining # of active connections

От
"Tim Barnard"
Дата:
Does anyone know an easy way, perhaps using libpq, for a process to query the postmaster as to how many connections are currently forked/spawned for a given database? For example, if 2 processes are connected to database A and 3 to database B, is there a way to query postmaster as to how many are connected to A or B?
 
Tim