Re: Determine current running query, but no query in pg_stat_activity - Mailing list pgsql-admin

From Tom Lane
Subject Re: Determine current running query, but no query in pg_stat_activity
Date
Msg-id 21904.1112110023@sss.pgh.pa.us
Whole thread Raw
In response to Determine current running query, but no query in pg_stat_activity  (Adam Witney <awitney@sghms.ac.uk>)
List pgsql-admin
Adam Witney <awitney@sghms.ac.uk> writes:
> Shouldn't there be something in current_query?

Only if (a) you have stats_command_string turned on, *and* (b) you
are a superuser or the owner of the target process.

            regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


pgsql-admin by date:

Previous
From: "Thomas F.O'Connell"
Date:
Subject: Re: Table Partitioning
Next
From: Peter Eisentraut
Date:
Subject: Re: locale and character set