|
|||||||||||
|
Re: [GENERAL] A few basic troubleshooting questions
From: Erik Jones <erik(at)myemma.com>
Date: Tue Sep 25 2007 - 10:50:19 EDT
> Hi List; For both 1) and 2), pg_stat_activity has more columns than just procpid. Here's a query I use to good effect for monitoring active queries:
SELECT procpid, to_char((now() - query_start), 'DD HH:MI:SS') as
query_time, client_addr, current_query
>
Yes, read the documentation on pg_locks: http://www.postgresql.org/
docs/8.2/interactive/view-pg-locks.html. Note that there pid
corresponds to procpid in pg_stat_activity.
You will need OS tools to handle those metrics. Look into vmstat and ipcs for memory, iostat for I/O, and top for cpu. Erik Jones
Software Developer | Emma®
Emma helps organizations everywhere communicate & market in style. Visit us online at http://www.myemma.com
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
Received on Tue Sep 25 10:54:58 2007This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 11:51:21 EDT |
||||||||||
|
|||||||||||