| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
| Cc: | Jeff Larsen <jlar310(at)gmail(dot)com>, "Coarr, Matt" <mcoarr(at)mitre(dot)org>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: any way to query for current connections to db? |
| Date: | 2007-11-09 23:07:03 |
| Message-ID: | 200711092307.lA9N73Y00374@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Scott Marlowe wrote:
> On Nov 9, 2007 4:57 PM, Bruce Momjian <bruce(at)momjian(dot)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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-11-09 23:14:16 | Re: Is "query" a reserved word in 8.3 plpgsql? |
| Previous Message | Jeff Larsen | 2007-11-09 23:06:11 | Re: any way to query for current connections to db? |