X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id AAC54D1B897 for ; Thu, 12 Feb 2004 23:53:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 63499-02 for ; Thu, 12 Feb 2004 19:53:37 -0400 (AST) Received: from ecintweb.eldocomp.com (smtp.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id B1912D1B4DE for ; Thu, 12 Feb 2004 19:53:32 -0400 (AST) Received: by ecintweb.eldocomp.com with XWall v3.29 ; Thu, 12 Feb 2004 16:53:34 -0700 From: Naomi Walker To: "pgsql-admin@postgresql.org" Subject: getting postgresql-7.4.1 statistics Date: Thu, 12 Feb 2004 16:53:31 -0700 X-Assembled-By: XWall v3.29 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Message-ID: <5.1.0.14.2.20040212165313.033dee28@imap.eldocomp.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_NextPart_1_qmZrHLajoetbkwlTZTViemHPfyb" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/199 X-Sequence-Number: 12373 This is a multi part message in MIME format. --_NextPart_1_qmZrHLajoetbkwlTZTViemHPfyb Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > >How do I get the postgresql statistics? I would like to know queries > >per second etc. > > > >The stats_start_collector variable is on, and I can see the > >stats collector process running. But how do I query it? > > > >Thanks a lot for any input. > >Check out www.postgresql.org/docs/7.3/static/monitoring-stats.html. > >There are several views and functions available for querying stats, like >pg_stat_activity, pg_stat_database. In pgsql, try "select * from >pg_stat_activity;", etc. > >Naomi > > > > > >-- > >Victor Sudakov, VAS4-RIPE, VAS47-RIPN > >2:5005/149@fidonet http://vas.tomsk.ru/ > > > >---------------------------(end of broadcast)--------------------------- > >TIP 3: if posting/reading through Usenet, please send an appropriate > > subscribe-nomail command to majordomo@postgresql.org so that your > > message can get through to the mailing list cleanly > >--------------------------------------------------------------------------= ----------------------------------------------- >Naomi Walker Chief Information Officer > Eldorado Computing, Inc. >nwalker@eldocomp.com 602-604-3100 >--------------------------------------------------------------------------= ----------------------------------------------- >Forget past mistakes. Forget failures. Forget everything except what you're >going to do now and do it. >- William Durant, founder of General Motors >--------------------------------------------------------------------------= ---------------------------------------------- > > ---------------------------------------------------------------------------= ---------------------------------------------- Naomi Walker Chief Information Officer Eldorado Computing, Inc. nwalker@eldocomp.com 602-604-3100 ---------------------------------------------------------------------------= ---------------------------------------------- Forget past mistakes. Forget failures. Forget everything except what you're= =20 going to do now and do it. - William Durant, founder of General Motors ---------------------------------------------------------------------------= --------------------------------------------- -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you. --_NextPart_1_qmZrHLajoetbkwlTZTViemHPfyb Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

>How do I get t= he postgresql statistics? I would like to know queries
>per second etc.
>
>The stats_start_collector variable is on, and I can see the
>stats collector process running. But how do I query it?
>
>Thanks a lot for any input.

Check out www.postgresql.org/docs/7.3/static/monitoring-stats.htm= l.

There are several views and functions available for querying stats, like
pg_stat_activity, pg_stat_database.  In pgsql, try "select * from
pg_stat_activity;", etc.

Naomi




>--
>Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
>2:5005/149@fidonet http://vas.tomsk.ru/
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly

---------------------------------------------------------------------------= ----------------------------------------------
Naomi Walker           &nb= sp;             Chief Information Officer
            &nb= sp;            =             &nb= sp;         Eldorado Computing, Inc.
nwalker@eldocomp.com         &= nbsp; 602-604-3100
---------------------------------------------------------------------------= ----------------------------------------------
Forget past mistakes. Forget failures. Forget everything except what you're
going to do now and do it.
- William Durant, founder of General Motors
---------------------------------------------------------------------------= ---------------------------------------------


---------------------------------------------------------------------------= ----------------------------------------------
Naomi Walker           &nb= sp;             Chief Information Officer
            &nb= sp;            =             &nb= sp;        Eldorado Computing, Inc.
nwalker@eldocomp.com         &= nbsp; 602-604-3100 
---------------------------------------------------------------------------= ----------------------------------------------
Forget past mistakes. Forget failures. Forget everything except what you're going to do now and do it.
- William Durant, founder of General Motors
---------------------------------------------------------------------------= ---------------------------------------------
-- CONFIDENTIALITY NOTICE --

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom i= t is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are he= reby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received t= his message in error, please immediately advise the sender by reply email, and delete the message. Thank you.

 

--_NextPart_1_qmZrHLajoetbkwlTZTViemHPfyb--