pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedcurrent_query column of pg_stat_activity view
2+ messages / 2 participants
[nested] [flat]
* current_query column of pg_stat_activity view
@ 2008-01-15 01:35 Tena Sakai <tsakai@gallo.ucsf.edu>
2008-01-15 02:02 ` Re: current_query column of pg_stat_activity view Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Tena Sakai @ 2008-01-15 01:35 UTC (permalink / raw)
To: pgsql-admin
Hi everybody,
I have an application that emits query to postgres
(running v 8.2.4 on Dell Hardware/Redhat enterprise
server) and I want to look at what postgres receives.
The only way I know to do so is to run a view called
pg_stat_activity, which gives me a column called
current_query. It so happens that the application is
issuing a long query with a few ANDs and what appears
in the current_query column does not seem to be the
whole thing. Is there any way I can look at the
entire query string?
Thank you.
Tena Sakai
tsakai@gallo.ucsf.edu
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: current_query column of pg_stat_activity view
2008-01-15 01:35 current_query column of pg_stat_activity view Tena Sakai <tsakai@gallo.ucsf.edu>
@ 2008-01-15 02:02 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2008-01-15 02:02 UTC (permalink / raw)
To: Tena Sakai <tsakai@gallo.ucsf.edu>; +Cc: pgsql-admin
"Tena Sakai" <tsakai@gallo.ucsf.edu> writes:
> I have an application that emits query to postgres
> (running v 8.2.4 on Dell Hardware/Redhat enterprise
> server) and I want to look at what postgres receives.
Turn on query logging (log_statement)?
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-01-15 02:02 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-01-15 01:35 current_query column of pg_stat_activity view Tena Sakai <tsakai@gallo.ucsf.edu>
2008-01-15 02:02 ` 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