From 76129e7f14b4605db0a046e13abef0e255ffe007 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 3 Feb 2011 13:46:23 +0100 Subject: Include more status information in walsender results Add the current xlog insert location to the response of IDENTIFY_SYSTEM, and adds result sets containing start and stop location of backups to BASE_BACKUP responses. --- doc/src/sgml/protocol.sgml | 44 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 8 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 4521496352e..b93c268167d 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1315,7 +1315,7 @@ The commands accepted in walsender mode are: Requests the server to identify itself. Server replies with a result - set of a single row, containing two fields: + set of a single row, containing three fields: @@ -1344,6 +1344,19 @@ The commands accepted in walsender mode are: + + + + xlogpos + + + + Current xlog write location. Useful to get a known location in the + transaction log where streaming can start. + + + + @@ -1520,15 +1533,16 @@ The commands accepted in walsender mode are: - When the backup is started, the server will first send a header in - ordinary result set format, followed by one or more CopyResponse - results, one for PGDATA and one for each additional tablespace other - than pg_default and pg_global. The data in - the CopyResponse results will be a tar format (using ustar00 - extensions) dump of the tablespace contents. + When the backup is started, the server will first send two + ordinary result sets, followed by one or more CopyResponse + results. + + + The first ordinary result set contains the starting position of the + backup, given in XLogRecPtr format as a single column in a single row. - The header is an ordinary resultset with one row for each tablespace. + The second ordinary result set has one row for each tablespace. The fields in this row are: @@ -1560,6 +1574,15 @@ The commands accepted in walsender mode are: + + After the second regular result set, one or more CopyResponse results + will be sent, one for PGDATA and one for each additional tablespace other + than pg_default and pg_global. The data in + the CopyResponse results will be a tar format (using ustar00 + extensions) dump of the tablespace contents. After the tar data is + complete, a final ordinary result set will be sent. + + The tar archive for the data directory and each tablespace will contain all files in the directories, regardless of whether they are @@ -1583,6 +1606,11 @@ The commands accepted in walsender mode are: Owner, group and file mode are set if the underlying filesystem on the server supports it. + + Once all tablespaces have been sent, a final regular result set will + be sent. This result set contains the end position of the + backup, given in XLogRecPtr format as a single column in a single row. + -- cgit v1.2.3