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

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

Tom Lane wrote:

> "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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>

This is very nice. I can't ever see the current query, however,
even as postgres. Is this column just to tease us? I can
see it could be a security issue.

elein

--
--------------------------------------------------------
elein(at)nextbus(dot)com
(510)420-3120
www.nextbus.com
spinning to infinity, hallelujah
--------------------------------------------------------

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-01-14 22:28:35 Re: PSQL Core Dumps
Previous Message Jeff Eckermann 2002-01-14 22:17:03 Re: mixed insert... ?