Re: any way to query for current connections to db?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Jeff Larsen <jlar310(at)gmail(dot)com>
Cc: "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 22:57:40
Message-ID: 200711092257.lA9Mven21892@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

--
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. +

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2007-11-09 22:58:16 Re: any way to query for current connections to db?
Previous Message Jeff Larsen 2007-11-09 22:54:28 Re: any way to query for current connections to db?