Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 71CDC475B8E for ; Thu, 2 Jan 2003 17:29:28 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id CBD1C475AAC for ; Thu, 2 Jan 2003 17:29:27 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h02MjA6P017962; Thu, 2 Jan 2003 17:45:10 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h02MTSj24176; Thu, 2 Jan 2003 17:29:28 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id XX5JZNKQ; Thu, 2 Jan 2003 17:29:27 -0500 Subject: Re: Viewing connections From: Robert Treat To: "Campano, Troy" Cc: pgsql-admin@postgresql.org In-Reply-To: <82C3FD729CFA504CA44E7D32BDED411FBD3889@LM-EXMSG-07.lm.lmig.com> References: <82C3FD729CFA504CA44E7D32BDED411FBD3889@LM-EXMSG-07.lm.lmig.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 02 Jan 2003 17:29:27 -0500 Message-Id: <1041546567.32015.19.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/13 X-Sequence-Number: 6855 On Thu, 2003-01-02 at 15:55, Campano, Troy wrote: > Is there an easy way to see what connections are open in a PostgreSQL server? > Any way to see if they are active? > > thank you! > ps -ax (or different flags if you like) will show open connections and should have bits / pieces of the queries being run on those connections. You can also do a select * from pg_stat_activity from psql to get a look at the current queries. Robert Treat