From: | Jan Wieck <janwieck(at)yahoo(dot)com> |
---|---|
To: | Pam Wampler <Pam_Wampler(at)taylorwhite(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: number of connections to postmaster |
Date: | 2002-02-22 18:48:31 |
Message-ID: | 200202221848.g1MImVj30387@saturn.janwieck.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Pam Wampler wrote:
> Tom
> When I try that, I get
>
> template1=# select count(*) from pg_stat_activity;
> ERROR: Relation 'pg_stat_activity' does not exist
Tom said "in 7.2". So why do you expect it to work in a
pre-7.2 version?
And BTW:
SELECT numbackends FROM pg_stat_database ...
could do it too.
Jan
>
>
> thanks
> Pam Wampler
>
> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Thursday, February 21, 2002 7:35 PM
> To: Percy
> Cc: pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] number of connections to postmaster
>
>
> "Percy" <percy_yip(at)yahoo(dot)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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Francisco Reyes | 2002-02-22 18:53:40 | Speed comparison to Oracle. Why was this query slower on pgsql? |
Previous Message | Fernando Schapachnik | 2002-02-22 18:46:48 | Re: [SQL] Regular Expression for 'and' instead of 'or' |