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

From Tom Lane
Subject Re: number of connections to postmaster
Date
Msg-id 12179.1014338126@sss.pgh.pa.us
Whole thread Raw
In response to number of connections to postmaster  ("Percy" <percy_yip@yahoo.com>)
Responses environment variables, output format & setting current date  (Brent Wood <baw@frc.niwa.cri.nz>)
List pgsql-general
"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

pgsql-general by date:

Previous
From: Medi Montaseri
Date:
Subject: Re: A Replication Idea
Next
From: Rich Shepard
Date:
Subject: Re: data mining or statistical analysis with postgresql