Received: from public.szptt.net.cn ([202.96.136.225]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f1HH9Zx20187 for ; Sat, 17 Feb 2001 12:09:36 -0500 (EST) (envelope-from ltshadow@basecity.com) Received: from laptop1([202.105.128.238]) by public.szptt.net.cn(JetMail 2.5.3.0) with SMTP id jmc3a8ece1e; Sat, 17 Feb 2001 17:08:52 -0000 Message-ID: <002601c09904$57ca2b80$1030fea9@laptop1> From: "lt" To: Subject: How to monitor postmaster to find a trouble query? Date: Sun, 18 Feb 2001 01:09:07 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.postgresql.org id f1HH9dx20188 X-Archive-Number: 200102/138 X-Sequence-Number: 740 Hi, I am running a productive server of postgresql 7.03, but sometimes it have a high load average value more than 10, it must be caused by a trouble query, although I have carefully checked my queries, I still can not find which query made this. I wish there is a way to monitor the query, for example, when I use 'top' find a postgres process take more than 50% CPU, I can check which query is executed in it. I have tried add query=4 in pq_options file, but nothing recorded in syslog.