Re: info request : listing active connections

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Vilson farias <vilson(dot)farias(at)digitro(dot)com(dot)br>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: info request : listing active connections
Date: 2002-03-26 14:36:37
Message-ID: 200203261436.g2QEabn16465@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Vilson farias wrote:
> Greetings,
>
> I've been looking for a way to list active connections from
> clients to the postmaster. What kind of features does postgresql
> has to make it possible? I would like to list users, ips and
> maybe calling application and plataform. Now, the only way I
> know is through ps -ef | grep post. Is there some system table
> where I can find information about active connections?

7.2 has pg_stat_activity table that shows connections and queries.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Vilson farias 2002-03-26 14:44:26 Re: info request : listing active connections
Previous Message Vilson farias 2002-03-26 14:07:06 info request : listing active connections