From: Ferdinand Smit <ferdinand@telegraafnet.nl>
To: pgsql-admin@postgresql.org
Subject: Query statistics problem
Date: Fri, 26 Oct 2001 16:53:22 +0200
Message-ID: <200110261454.f9QEssC30644@server9.telegraafnet.nl> (raw)
Hi,
To improve the database preformence, I tried to monitor all the query's and
the system usage by using the settings debug_print_query and show_query_stats
in the /etc/postgres/postgres.conf. The only problem is that I can't find a
relationship between the query and the statistics, so I can't tell which
query was extreemly slow.
my postgres.log:
2001-10-26 04:00:03 [11839] DEBUG: query: select datname from pg_database
order by datname
<ZIP>
QUERY STATISTICS
! system usage stats:
! 0.046908 elapsed 0.000000 user 0.000000 system sec
! [0.030000 user 0.010000 sys total]
! 0/0 [0/0] filesystem blocks in/out
! 34/8 [340/160] page faults/reclaims, 0 [0] swaps
! 0 [0] signals rcvd, 0/0 [0/0] messages rcvd/sent
! 0/0 [0/0] voluntary/involuntary context switches
! postgres usage stats:
! Shared blocks: 7 read, 0 written, buffer hit rate
= 91.67%
! Local blocks: 0 read, 0 written, buffer hit rate
= 0.00%
! Direct blocks: 0 read, 0 written
The query is logd at the start, and the statistics at the and. So all the
querys and statistics will be mixed up.
Is there a solution for this "problem". Please help !!
Yours,
Ferdinand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: ferdinand@telegraafnet.nl
Subject: Re: Query statistics problem
In-Reply-To: <200110261454.f9QEssC30644@server9.telegraafnet.nl>
References: <200110261454.f9QEssC30644@server9.telegraafnet.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox