Monitoring PostgreSQL Process - Mailing list pgsql-admin

I have a couple processes/connections to one of our databases that appears to be eating up most of the CPU and we are trying to determine what these processes are doing that is taking so much CPU time.

Is there a way to monitor the SQL being run for a specific connection/process?

We are using PostgreSQL 8.1.5 on CentOS Linux.

Thanks,
Aaron

--
==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
==================================================================

pgsql-admin by date:

Previous
From: Richard Broersma Jr
Date:
Subject: Re: Fw: postgres database crash
Next
From: "Tomeh, Husam"
Date:
Subject: Re: Monitoring PostgreSQL Process