pgstat_read_statsfiles() and reset timestamp

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема pgstat_read_statsfiles() and reset timestamp
Дата
Msg-id b91b6ff1-6ef3-ee86-a713-c93978973c78@oss.nttdata.com
обсуждение исходный текст
Ответы Re: pgstat_read_statsfiles() and reset timestamp  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

pgstat_read_statsfiles() sets each stat_reset_timestamp to
the current timestamp, at the beginning of the function,
just in case we fail to load the existing statsfile. This code is
originally introduced by commit 4c468b37a2.

But commit ad1b5c842b changed pgstat_read_statsfiles() so that
the stats including stat_reset_timestamp are zeroed in that case,
so now there seems no need to set each stat_reset_timestamp.
Thought?

Attached is the patch that removes such unnecessary sets of
stat_reset_timestamp from pgstat_read_statsfiles().

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

Вложения

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

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: [PATCH] Keeps tracking the uniqueness with UniqueKey
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Inefficiency in SLRU stats collection