Received: from server0.telegraafnet.nl (firewall.telegraafnet.nl [195.64.78.58]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9QEsxP28144 for ; Fri, 26 Oct 2001 10:54:59 -0400 (EDT) (envelope-from ferdinand@telegraafnet.nl) Received: from server9.telegraafnet.nl (server9.telegraafnet.nl [192.168.1.9]) by server0.telegraafnet.nl (8.9.3/8.9.3) with ESMTP id QAA17212 for ; Fri, 26 Oct 2001 16:54:54 +0200 Received: from there (c22457.ws.tem.nl [192.168.1.26]) by server9.telegraafnet.nl (8.11.1/8.11.1/Debian 8.11.0-6) with SMTP id f9QEssC30644 for ; Fri, 26 Oct 2001 16:54:54 +0200 Message-Id: <200110261454.f9QEssC30644@server9.telegraafnet.nl> X-Authentication-Warning: server9.telegraafnet.nl: Host c22457.ws.tem.nl [192.168.1.26] claimed to be there Content-Type: text/plain; charset="iso-8859-1" From: Ferdinand Smit To: pgsql-admin@postgresql.org Subject: Query statistics problem Date: Fri, 26 Oct 2001 16:53:22 +0200 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archive-Number: 200110/226 X-Sequence-Number: 2470 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 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