pgsql: pgstat: add WAL receiver status view & SRF

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: pgstat: add WAL receiver status view & SRF
Дата
Msg-id E1aHGMh-00011K-98@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
pgstat: add WAL receiver status view & SRF

This new view provides insight into the state of a running WAL receiver
in a HOT standby node.
The information returned includes the PID of the WAL receiver process,
its status (stopped, starting, streaming, etc), start LSN and TLI, last
received LSN and TLI, timestamp of last message send and receipt, latest
end-of-WAL LSN and time, and the name of the slot (if any).

Access to the detailed data is only granted to superusers; others only
get the PID.

Author: Michael Paquier
Reviewer: Haribabu Kommi

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b1a9bad9e744857291c7d5516080527da8219854

Modified Files
--------------
doc/src/sgml/monitoring.sgml          |   91 +++++++++++++++++++
src/backend/catalog/system_views.sql  |   16 ++++
src/backend/replication/walreceiver.c |  154 +++++++++++++++++++++++++++++++++
src/include/catalog/catversion.h      |    2 +-
src/include/catalog/pg_proc.h         |    2 +
src/include/replication/walreceiver.h |    2 +
src/test/regress/expected/rules.out   |   13 +++
7 files changed, 279 insertions(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove vestigial CHECK_FOR_INTERRUPTS call.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Use plain mkdir() not pg_mkdir_p() to create subdirectories of P