Re: How can i know the users that are loged in - Mailing list pgsql-admin

From Antonis Antoniou
Subject Re: How can i know the users that are loged in
Date
Msg-id 3FD7428D.7000207@albourne.com
Whole thread Raw
In response to How can i know the users that are loged in  (Vasilis Ventirozos <vendi@cosmoline.com>)
List 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;




pgsql-admin by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: pg 7.4 on debian
Next
From: William Yu
Date:
Subject: Re: Running Postgres Daemons with same data files