pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to monitor postmaster to find a trouble query?
2+ messages / 2 participants
[nested] [flat]

* How to monitor postmaster to find a trouble query?
@ 2001-02-17 17:09  lt <ltshadow@basecity.com>
  0 siblings, 1 reply; 2+ messages in thread

From: lt @ 2001-02-17 17:09 UTC (permalink / raw)
  To: pgsql-admin

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. 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How to monitor postmaster to find a trouble query?
@ 2001-02-17 18:19  Tom Lane <tgl@sss.pgh.pa.us>
  parent: lt <ltshadow@basecity.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2001-02-17 18:19 UTC (permalink / raw)
  To: lt <ltshadow@basecity.com>; +Cc: pgsql-admin

"lt" <ltshadow@basecity.com> writes:
>     I have tried add query=4 in pq_options file,
>     but nothing recorded in syslog.

Are you starting the postmaster with -S ?  That suppresses its log...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-02-17 18:19 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-17 17:09 How to monitor postmaster to find a trouble query? lt <ltshadow@basecity.com>
2001-02-17 18:19 ` Tom Lane <tgl@sss.pgh.pa.us>

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