From: bryan castillo <rook_5150@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: How do I view the parameters of a running query?
Date: Wed, 7 May 2008 07:51:30 -0700 (PDT)
Message-ID: <103519.50713.qm@web55914.mail.re3.yahoo.com> (raw)
How can I find out what the parameters are of a running prepared query?
If I look at pg_stat_activity I can see the query, however I don't know what parameters the prepared statement is using.
-[ RECORD 3 ]-+------------------------------------------------------
datid | 16391
datname | warehouse
procpid | 22428
usesysid | 16387
usename | mechturk
current_query | select count(*) from hit.assignment where answer = $1
waiting | f
xact_start | 2008-05-07 07:38:23.985758-07
query_start | 2008-05-07 07:38:23.989455-07
backend_start | 2008-05-07 07:38:23.828444-07
client_addr | 127.0.0.1
client_port | 43664
Thanks.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: rook_5150@yahoo.com
Subject: Re: How do I view the parameters of a running query?
In-Reply-To: <103519.50713.qm@web55914.mail.re3.yahoo.com>
* 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