Any way to see what queries are currently running?

From: Chris Hoover <revoohc(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Any way to see what queries are currently running?
Date: 2005-08-15 20:54:20
Message-ID: 1d219a6f05081513546f6458b6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I'm running 7.3.4. Is there anyway to see the actual sql being run by
the database via a query? I am having some problems with long running
load causing querires from our reporting system. I have sql logging
turned on to log the sql statements to my postgres.log file. However,
these reporting queries do not appear to be logging the entire query.
I am only getting the select clause (and I'm not sure if it's all of
it) but no from or where clause.

Can I pull these queries out from postgres?

Thanks,

Chris

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Guido Barosio 2005-08-15 21:14:35 Re: Any way to see what queries are currently running?
Previous Message D Kavan 2005-08-15 20:16:42 vacuumdb -a -f