Re: number of connections to postmaster - Mailing list pgsql-general

From Pam Wampler
Subject Re: number of connections to postmaster
Date
Msg-id 2E4528861499D41199D200A0C9B15BC0012F475D@taylorwhite.com
Whole thread Raw
In response to number of connections to postmaster  ("Percy" <percy_yip@yahoo.com>)
Responses Re: number of connections to postmaster  (Devrim GUNDUZ <devrim@oper.metu.edu.tr>)
Re: number of connections to postmaster  (Jan Wieck <janwieck@yahoo.com>)
List pgsql-general
Tom
When I try that, I get

template1=# select count(*) from pg_stat_activity;
ERROR:  Relation 'pg_stat_activity' does not exist


thanks
Pam Wampler

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Thursday, February 21, 2002 7:35 PM
To: Percy
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] number of connections to postmaster


"Percy" <percy_yip@yahoo.com> writes:
> Is there any way to find out the number of connections to postmaster?

In 7.2, "select count(*) from pg_stat_activity" should do it.  See
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/monitoring.html

            regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

pgsql-general by date:

Previous
From: Devrim GUNDUZ
Date:
Subject: Re: Select <-> Case Insensitive
Next
From: "Amit Khare"
Date:
Subject: How to Run postgres inside gdb for debugging