From: Adam Witney <awitney@sghms.ac.uk>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Determine current running query, but no query in pg_stat_activity
Date: Tue, 29 Mar 2005 16:03:01 +0100
Message-ID: <BE6F2CB5.4357B%awitney@sghms.ac.uk> (raw)
Hi,
I have a process running and I am trying to work out what it is doing.
Supposedly it is running a SELECT
23093 ? R 6:35 postgres: lubrook bugasbase SELECT
However in pg_stat_activity, I get no current_query
bugasbase=# SELECT * from pg_stat_activity ;
datid | datname | procpid | usesysid | usename | current_query |
query_start
----------+-----------+---------+----------+---------+---------------+------
-------
80573819 | bugasbase | 23117 | 1 | pgsql | |
80573819 | bugasbase | 23093 | 109 | lubrook | |
Shouldn't there be something in current_query?
Thanks for any advice
Adam
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: awitney@sghms.ac.uk
Subject: Re: Determine current running query, but no query in pg_stat_activity
In-Reply-To: <BE6F2CB5.4357B%awitney@sghms.ac.uk>
References: <BE6F2CB5.4357B%awitney@sghms.ac.uk>
* 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