Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 8D856474E4E for ; Tue, 26 Mar 2002 09:36:49 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g2QEabn16465; Tue, 26 Mar 2002 09:36:37 -0500 (EST) From: Bruce Momjian Message-Id: <200203261436.g2QEabn16465@candle.pha.pa.us> Subject: Re: info request : listing active connections In-Reply-To: <005c01c1d4cf$86bfa570$98a0a8c0@dgtac> To: Vilson farias Date: Tue, 26 Mar 2002 09:36:37 -0500 (EST) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200203/315 X-Sequence-Number: 3849 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@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026