From 0d4513b6138650355fcc981a9f34ff57b8d69db4 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 8 Feb 2022 11:17:21 -0500 Subject: Remove server support for the previous base backup protocol. Commit cc333f32336f5146b75190f57ef587dff225f565 added a new COPY sub-protocol for taking base backups, but retained support for the previous protocol. For the same reasons articulated in the message for commit 9cd28c2e5f11dfeef64a14035b82e70acead65fd, remove support for the previous protocol from the server. Discussion: http://postgr.es/m/CA+TgmoazKcKUWtqVa0xZqSzbKgTH+X-aw4V7GyLD68EpDLMh8A@mail.gmail.com --- doc/src/sgml/protocol.sgml | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 71f746e891f..fd03c860bdf 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -2634,13 +2634,8 @@ The commands accepted in replication mode are: TARGET 'target' - Tells the server where to send the backup. If not specified, - the legacy base backup protocol will be used. Otherwise, the new - protocol will be used, as described below. - - - - If the target is client, the backup data is + Tells the server where to send the backup. If the target is + client, which is the default, the backup data is sent to the client. If it is server, the backup data is written to the server at the pathname specified by the TARGET_DETAIL option. If it is @@ -2866,25 +2861,8 @@ The commands accepted in replication mode are: - After the second regular result set, one or more CopyOutResponse results - will be sent. If the TARGET option is not specified, - the legacy base backup protocol will be used. In this mode, - there will be one CopyOutResponse for the main directory, one for each - additional tablespace other than pg_default and - pg_global, and one for the backup manifested if - requested. The main data directory and any additional tablespaces will - be sent in tar format (following the ustar interchange - format specified in the POSIX 1003.1-2008 standard), and - the manifest will sent as a plain file. Prior to - PostgreSQL 15, the server omitted the two trailing - blocks of zeroes specified in the standard, but this is no longer the - case. - - - - New applications should specify the TARGET option. - When that option is used, a single CopyOutResponse will be sent, and - the payload of each CopyData message will contain a message in one of + After the second regular result set, a CopyOutResponse will be sent. + The payload of each CopyData message will contain a message in one of the following formats: @@ -2898,6 +2876,10 @@ The commands accepted in replication mode are: Byte1('n') Identifes the messaage as indicating the start of a new archive. + There will be one archive for the main data directory and one + for each additional tablespace; each will use tar format + (following the ustar interchange format specified + in the POSIX 1003.1-2008 standard). -- cgit v1.2.3