pgsql: Properly set base backup backends to active in pg_stat_activity

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pgsql: Properly set base backup backends to active in pg_stat_activity
Дата
Msg-id E1eUwaZ-000418-HX@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Properly set base backup backends to active in pg_stat_activity

When walsenders were included in pg_stat_activity, only the ones
actually streaming WAL were listed as active when they were active. In
particular, the connections sending base backups were listed as being
idle. Which means that a regular pg_basebackup would show up with one
active and one idle connection, when both were active.

This patch updates to set all walsenders to active when they are
(including those doing very fast things like IDENTIFY_SYSTEM), and then
back to idle. Details about exactly what they are doing is available in
pg_stat_replication.

Patch by me, review by Michael Paquier and David Steele.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d02974e32e028fc078d8f5eca1d6a4516efb0aa6

Modified Files
--------------
src/backend/replication/walsender.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: pgsql: Fix race condition when changing synchronous_standby_names
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Use new overflow aware integer operations.