pgsql: pg_stat_activity: show NULL stmt start time for walsenders

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: pg_stat_activity: show NULL stmt start time for walsenders
Дата
Msg-id E1iow9z-0003SR-7s@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
pg_stat_activity: show NULL stmt start time for walsenders

Returning a non-NULL time is pointless, sinc a walsender is not a
process that would be running normal transactions anyway, but the code
was unintentionally exposing the process start time intermittently,
which was not only bogus but it also confused monitoring systems looking
for idle transactions.  Fix by avoiding all updates in walsenders.

Backpatch to pg10: previously I misidentified the branches that show
auxiliary processes in pg_stat_activity.

Reported-by: Tomas Vondra
Discussion: https://postgr.es/m/20191209234409.exe7osmyalwkt5j4@development

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8de3b68faffcb5898244bd8af3abfb6edb11543f

Modified Files
--------------
src/backend/access/transam/xact.c | 7 +++++++
1 file changed, 7 insertions(+)


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: pg_stat_activity: show NULL stmt start time for walsenders
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgsql: pg_stat_activity: show NULL stmt start time for walsenders