Re: Add connection active, idle time to pg_stat_activity - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: Add connection active, idle time to pg_stat_activity
Date
Msg-id CAJ7c6TM16Y1h0PRiLQuGDyXijGA77MajuswpC6tcMGAjWm0BMw@mail.gmail.com
Whole thread Raw
In response to Re: Add connection active, idle time to pg_stat_activity  (Aleksander Alekseev <aleksander@timescale.com>)
List pgsql-hackers
Hi again,

> 57033 (master) =# select * from pg_stat_activity where pid = 57033;
> ...
> total_active_time              | 2514.635
> total_idle_in_transaction_time | 2314.703
>
> 57033 (master) =# COMMIT;
> 57033 (master) =# select * from pg_stat_activity where pid = 57033;
> ...
> total_active_time              | 22.048
> total_idle_in_transaction_time | 7300.911
> ```

My previous message was wrong, total_active_time doesn't track
seconds. I got confused by the name of this column. Still I'm pretty
confident it shouldn't decrease.

-- 
Best regards,
Aleksander Alekseev



pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: Add connection active, idle time to pg_stat_activity
Next
From: Kyotaro Horiguchi
Date:
Subject: i.e. and e.g.