Re: Add connection active, idle time to pg_stat_activity

Поиск
Список
Период
Сортировка
От Dilip Kumar
Тема Re: Add connection active, idle time to pg_stat_activity
Дата
Msg-id CAFiTN-vC8zSdChTR4HSmjH+r4AtyN0J7jPTTbtggKLPa0hi8og@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add connection active, idle time to pg_stat_activity  (Rafia Sabih <rafia.pghackers@gmail.com>)
Список pgsql-hackers
On Tue, Nov 16, 2021 at 5:06 PM Rafia Sabih <rafia.pghackers@gmail.com> wrote:
> > I think this change is wrong,  basically, "tsmsg->m_idle_in_xact_time"
> > is used for counting the database level idle in transaction count, you
> > can check "pg_stat_get_db_idle_in_transaction_time" function for that.
> > So "pgStatTransactionIdleTime" is the variable counting the idle in
> > transaction time, pgStatIdleTime is just counting the idle time
> > outside the transaction so if we make this change we are changing the
> > meaning of tsmsg->m_idle_in_xact_time.
>
> Got it.
> Updated

Okay, thanks, I will look into it one more time early next week and if
I see no issues then I will move it to RFC.

-- 
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Nikolay Shaplov
Дата:
Сообщение: Re: Suggestion: Unified options API. Need help from core team
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Windows build warnings