Discussion:
getting postgresql-7.4.1 statistics
(too old to reply)
Naomi Walker
2004-02-12 23:53:31 UTC
Permalink
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
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
message can get through to the mailing list cleanly
-------------------------------------------------------------------------------------------------------------------------
Naomi Walker Chief Information Officer
Eldorado Computing, Inc.
-------------------------------------------------------------------------------------------------------------------------
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.
***@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
------------------------------------------------------------------------------------------------------------------------

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom it 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 hereby 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 this message in error, please immediately advise the sender by reply email, and delete the message. Thank you.
Victor Sudakov
2004-02-13 03:54:38 UTC
Permalink
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.
I still cannot find the average number of queries per second. Could
you please be more specific.
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
message can get through to the mailing list cleanly
By the way this advice does not work. Majordomo says:
The command mode "nomail" is invalid.
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
2:5005/***@fidonet http://vas.tomsk.ru/
CoL
2004-02-13 17:42:30 UTC
Permalink
hi,
Post by Victor Sudakov
I still cannot find the average number of queries per second. Could
you please be more specific.
there is no such. You have to write it for your own if you want. Or you
can log statements to a log file, and then parse that file.

C.

Loading...