Re: users connected

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: Cardoso Patrick <cardoso(at)iut-rodez(dot)fr>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: users connected
Date: 2004-07-19 21:31:55
Message-ID: 40FC3DCB.2010706@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Cardoso Patrick wrote:
> Hi,
>
>
>
> Is it possible to know the number of users connected to a database ?

select * from pg_stat_activity.

I'm not sure about permissions you need for it, try.

Regards
Gaetano Mendola

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2004-07-19 21:36:38 Re: [HACKERS] Point in Time Recovery
Previous Message Robert Treat 2004-07-19 21:26:50 Re: users connected