Re: Viewing connections

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: "Campano, Troy" <Troy(dot)Campano(at)LibertyMutual(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Viewing connections
Date: 2003-01-02 22:29:27
Message-ID: 1041546567.32015.19.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Robert Treat 2003-01-02 22:47:36 Re: max_fsm_pages Sanity Check
Previous Message mark carew 2003-01-02 21:10:28 Re: Some more doubts in postgresql -- Urgent