X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A217ED1B432 for ; Wed, 10 Dec 2003 15:58:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 67929-05 for ; Wed, 10 Dec 2003 11:58:10 -0400 (AST) Received: from circe.uk.albourne.com (circe.albourne.com [195.212.0.60]) by svr1.postgresql.org (Postfix) with ESMTP id 2F457D1B4DB for ; Wed, 10 Dec 2003 11:58:04 -0400 (AST) Received: from emily.cy.albourne.com (emily.cy.albourne.com [192.168.51.32]) by circe.uk.albourne.com (8.11.4/8.11.4/Albourne/R/1.15) with ESMTP id hBAFw6k30234; Wed, 10 Dec 2003 15:58:06 GMT Received: from albourne.com (antonio@antoinette.cy.albourne.com [192.168.51.61]) by emily.cy.albourne.com (8.9.3/8.9.3/Albourne/S/1.8) with ESMTP id RAA19149; Wed, 10 Dec 2003 17:58:05 +0200 (EET) Message-ID: <3FD7428D.7000207@albourne.com> Date: Wed, 10 Dec 2003 17:58:05 +0200 From: Antonis Antoniou Organization: APL Financial Services (Overseas) Ltd User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: vendi@cosmoline.com Cc: pgsql-admin@postgresql.org Subject: Re: How can i know the users that are loged in References: <200312101401.42714.vendi@cosmoline.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/135 X-Sequence-Number: 11643 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;