Query statistics problem

From: Ferdinand Smit <ferdinand(at)telegraafnet(dot)nl>
To: pgsql-admin(at)postgresql(dot)org
Subject: Query statistics problem
Date: 2001-10-26 14:53:22
Message-ID: 200110261454.f9QEssC30644@server9.telegraafnet.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Browse pgsql-admin by date

  From Date Subject
Next Message Jeff Boes 2001-10-26 16:15:26 ALTER TABLE workarounds
Previous Message Manuel Trujillo 2001-10-25 09:46:09 about rserv