From 9b4271deb97270d336c9d34ac911748faa5a4892 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 7 Jan 2011 11:06:55 -0500 Subject: [PATCH] Document pg_stat_replication, bump catversion since that was overlooked. Itagaki Takahiro, edited by me. --- doc/src/sgml/high-availability.sgml | 10 ++++++++++ doc/src/sgml/monitoring.sgml | 9 +++++++++ src/include/catalog/catversion.h | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/high-availability.sgml b/doc/src/sgml/high-availability.sgml index b1ec461f53..d8841228e1 100644 --- a/doc/src/sgml/high-availability.sgml +++ b/doc/src/sgml/high-availability.sgml @@ -865,6 +865,16 @@ primary_conninfo = 'host=192.168.1.50 port=5432 user=foo password=foopass' process status of the WAL receiver process, displayed using the ps command (see for details). + + You can retrieve a list of WAL sender processes via the + + pg_stat_replication view. Large differences between + pg_current_xlog_location and sent_location field + might indicate that the master server is under heavy load, while + differences between sent_location and + pg_last_xlog_receive_location on the standby might indicate + network delay, or that the the standby is under heavy load. + diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 739b8a27fd..e2d27da38c 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -294,6 +294,15 @@ postgres: user database host + + pg_stat_replicationpg_stat_replication + One row per WAL sender process, showing process ID, + user OID, user name, application name, client's address and port number, + time at which the server process began execution, and transaction log + location. + + + pg_stat_all_tablespg_stat_all_tables For each table in the current database (including TOAST tables), diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index 3f5ef242ed..92e1a0fe62 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 201101051 +#define CATALOG_VERSION_NO 201101071 #endif