From: | Luki Rustianto <lukirus(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | How to use pg_stat_activity correctly ? |
Date: | 2006-02-10 08:30:02 |
Message-ID: | a87d9f3a0602100030l40f6032avb26a3a1d27b21968@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi All,
I try to query on pg_stat_activity but the returned result is only like this:
teramedv2=> select * from pg_stat_activity where datname='teramedv2';
datid | datname | procpid | usesysid | usename | current_query | query_start
-------+-----------+---------+----------+---------+---------------+-------------
17178 | teramedv2 | 32727 | 103 | test | |
17178 | teramedv2 | 26848 | 103 | test | |
17178 | teramedv2 | 563 | 103 | test | |
17178 | teramedv2 | 26799 | 103 | test | |
(4 rows)
the field current_query and query_start seems to me always null ... I
try to do a long run select query on the other console and see the
returned result from pg_stat_activity but the returned result is only
new row with datid,datname,procpid,usename fields is filled with the
correct value but current_query and query_start fields is always null.
Is this an expected result ?
From | Date | Subject | |
---|---|---|---|
Next Message | A. Kretschmer | 2006-02-10 08:41:50 | Re: How to use pg_stat_activity correctly ? |
Previous Message | Devrim GUNDUZ | 2006-02-10 07:57:13 | Re: Database Comparison tool? |