pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Antonis Antoniou <a.antoniou@albourne.com>
To: vendi@cosmoline.com
Cc: pgsql-admin@postgresql.org
Subject: Re: How can i know the users that are loged in
Date: Wed, 10 Dec 2003 17:58:05 +0200
Message-ID: <3FD7428D.7000207@albourne.com> (raw)
References: <200312101401.42714.vendi@cosmoline.com>



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;






view thread (2+ messages)

Message-ID: <3FD7428D.7000207@albourne.com>
Permalink:  ../3FD7428D.7000207@albourne.com/
Also on:    postgresql.org/message-id/3FD7428D.7000207@albourne.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: a.antoniou@albourne.com, vendi@cosmoline.com
  Subject: Re: How can i know the users that are loged in
  In-Reply-To: <3FD7428D.7000207@albourne.com>
  References: <200312101401.42714.vendi@cosmoline.com> <3FD7428D.7000207@albourne.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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