Re: Anyway to know which users are connected to postgres?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Peter E(dot) Chen" <pchen3(at)jhmi(dot)edu>
Cc: "Postgres (General)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Anyway to know which users are connected to postgres?
Date: 2002-01-14 18:02:31
Message-ID: 12694.1011031351@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Peter E. Chen" <pchen3(at)jhmi(dot)edu> writes:
> I'd like to know if there is anyway one can figure out who is currently
> connected to the database.

In 7.2 there is a system view pg_stat_activity.

Since about 7.0, a "ps" listing will show the owning user for each
postgres backend process (on most platforms, anyway).

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ian Harding 2002-01-14 18:05:26 PSQL Core Dumps
Previous Message Bruce Momjian 2002-01-14 17:34:41 Re: Anyway to know which users are connected to postgres?