Re: How can i know the users that are loged in

From: Antonis Antoniou <a(dot)antoniou(at)albourne(dot)com>
To: vendi(at)cosmoline(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How can i know the users that are loged in
Date: 2003-12-10 15:58:05
Message-ID: 3FD7428D.7000207@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Vasilis Ventirozos wrote:

>Hi all i want to ask something about user managment ,
>
>How can i know the users that
>are loged thru an SQL command
>or how can i know who i am (my username) thru SQL again
>
>i can see that the users are loging so when i connect to a database
>a triger (maybe) raises an notise that user vasilis is loged in
>

If I understood correctly you need the query below:
SELECT * from pg_stat_activity;

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mark Warner 2003-12-10 16:00:18 Shutting down pgsql
Previous Message Oliver Elphick 2003-12-10 14:43:04 Re: pg 7.4 on debian