pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: lt <ltshadow@basecity.com>
To: pgsql-admin@postgresql.org
Subject: How to monitor postmaster to find a trouble query?
Date: Sun, 18 Feb 2001 01:09:07 +0800
Message-ID: <002601c09904$57ca2b80$1030fea9@laptop1> (raw)

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. 




view thread (2+ messages)  latest in thread

Message-ID: <002601c09904$57ca2b80$1030fea9@laptop1>
Permalink:  ../002601c09904$57ca2b80$1030fea9@laptop1/
Also on:    postgresql.org/message-id/002601c09904$57ca2b80$1030fea9@laptop1

 · 

reply

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: ltshadow@basecity.com
  Subject: Re: How to monitor postmaster to find a trouble query?
  In-Reply-To: <002601c09904$57ca2b80$1030fea9@laptop1>
  References: <002601c09904$57ca2b80$1030fea9@laptop1>

* 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