pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How can i know the users that are loged in
2+ messages / 2 participants
[nested] [flat]

* How can i know the users that are loged in
@ 2003-12-10 12:01  Vasilis Ventirozos <vendi@cosmoline.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Vasilis Ventirozos @ 2003-12-10 12:01 UTC (permalink / raw)
  To: pgsql-admin

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


Thanx in advance

Vasilis Ventirozos




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How can i know the users that are loged in
@ 2003-12-10 15:58  Antonis Antoniou <a.antoniou@albourne.com>
  parent: Vasilis Ventirozos <vendi@cosmoline.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Antonis Antoniou @ 2003-12-10 15:58 UTC (permalink / raw)
  To: vendi@cosmoline.com; +Cc: 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;






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-12-10 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-10 12:01 How can i know the users that are loged in Vasilis Ventirozos <vendi@cosmoline.com>
2003-12-10 15:58 ` Antonis Antoniou <a.antoniou@albourne.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox