Re: any way to query for current connections to db? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: any way to query for current connections to db?
Date
Msg-id 200711092307.lA9N73Y00374@momjian.us
Whole thread Raw
In response to Re: any way to query for current connections to db?  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-general
Scott Marlowe wrote:
> On Nov 9, 2007 4:57 PM, Bruce Momjian <bruce@momjian.us> wrote:
> > Jeff Larsen wrote:
> > > > Is there any way to query the database to identify what the current
> > > > connections are (connections, sessions, or whatever you want to call them)?
> > >
> > > select * from pg_stat_activity;
> >
> > Is this an FAQ?
>
> Yes, it gets asked a lot.
>
> Is it in the FAQ?  Don't know.

No, it isn't.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-general by date:

Previous
From: "Jeff Larsen"
Date:
Subject: Re: any way to query for current connections to db?
Next
From: Tom Lane
Date:
Subject: Re: Is "query" a reserved word in 8.3 plpgsql?