pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Campano, Troy <Troy.Campano@LibertyMutual.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Viewing connections
Date: 02 Jan 2003 17:29:27 -0500
Message-ID: <1041546567.32015.19.camel@camel> (raw)
In-Reply-To: <82C3FD729CFA504CA44E7D32BDED411FBD3889@LM-EXMSG-07.lm.lmig.com>
References: <82C3FD729CFA504CA44E7D32BDED411FBD3889@LM-EXMSG-07.lm.lmig.com>

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





view thread (2+ messages)

Message-ID: <1041546567.32015.19.camel@camel>
Permalink:  ../1041546567.32015.19.camel@camel/
Also on:    postgresql.org/message-id/1041546567.32015.19.camel@camel

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: xzilla@users.sourceforge.net, Troy.Campano@LibertyMutual.com
  Subject: Re: Viewing connections
  In-Reply-To: <1041546567.32015.19.camel@camel>
  References: <82C3FD729CFA504CA44E7D32BDED411FBD3889@LM-EXMSG-07.lm.lmig.com> <1041546567.32015.19.camel@camel>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox