Re: Postgres Login Users Details

From: Chris Angelico <rosuav(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres Login Users Details
Date: 2012-10-22 14:50:25
Message-ID: CAPTjJmqbQvW9QfmKh_zWpZ0BSHpTPJ4H3WkK0ivUPSnmU3gqDA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 22, 2012 at 7:47 PM, Vishalakshi Navaneethakrishnan
<nvishalakshi(at)sirahu(dot)com> wrote:
> Hi all,
>
> I need to know who are all access database from different remote host.
>
> Example :
>
> User1(at)host1 logged / access db dbuser(at)dbname in Dbserver
>
> How can i get this information?

As suggested, you can configure logging to record this. For
up-to-the-moment "who's currently logged in" information, look at the
pg_stat_activity table.

ChrisA

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message chinnaobi 2012-10-22 14:55:39 Re: Streaming replication failed to start scenarios
Previous Message Albe Laurenz 2012-10-22 14:34:18 Re: Streaming replication failed to start scenarios