Thread: Active sessions?

Active sessions?

From
"MaFa"
Date:
Hi all!

How could I determine that how many connections has the PostgreSQL
currently? I cannot reach the OS, I can reach the database only via client
(PhpPostgreAdmin)

Thanks: MaFa


Re: Active sessions?

From
Bruce Momjian
Date:
MaFa wrote:
> Hi all!
>
> How could I determine that how many connections has the PostgreSQL
> currently? I cannot reach the OS, I can reach the database only via client
> (PhpPostgreAdmin)

SELECT from pg_stat_activity will show it.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073