Skip to content

Commit a32d983

Browse files
committed
Documenation fixups for replication protocol.
There is no CopyResponse message; it should be CopyOutResponse. Also, if there is no WAL to stream, the server does not immediately send a CommandComplete; it's a historical timeline, so it will send a response tuple first. Discussion: https://postgr.es/m/0a2c985ebcaa1acd385350aeba561b6509187394.camel@j-davis.com
1 parent f713ff7 commit a32d983

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/src/sgml/protocol.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,8 +2065,8 @@ The commands accepted in replication mode are:
20652065
the history of the server, the server will stream all the WAL on that
20662066
timeline starting from the requested start point up to the point where
20672067
the server switched to another timeline. If the client requests
2068-
streaming at exactly the end of an old timeline, the server responds
2069-
immediately with CommandComplete without entering COPY mode.
2068+
streaming at exactly the end of an old timeline, the server skips COPY
2069+
mode entirely.
20702070
</para>
20712071

20722072
<para>
@@ -2638,7 +2638,7 @@ The commands accepted in replication mode are:
26382638
</para>
26392639
<para>
26402640
When the backup is started, the server will first send two
2641-
ordinary result sets, followed by one or more CopyResponse
2641+
ordinary result sets, followed by one or more CopyOutResponse
26422642
results.
26432643
</para>
26442644
<para>
@@ -2681,15 +2681,15 @@ The commands accepted in replication mode are:
26812681
</variablelist>
26822682
</para>
26832683
<para>
2684-
After the second regular result set, one or more CopyResponse results
2684+
After the second regular result set, one or more CopyOutResponse results
26852685
will be sent, one for the main data directory and one for each additional tablespace other
26862686
than <literal>pg_default</literal> and <literal>pg_global</literal>. The data in
2687-
the CopyResponse results will be a tar format (following the
2687+
the CopyOutResponse results will be a tar format (following the
26882688
<quote>ustar interchange format</quote> specified in the POSIX 1003.1-2008
26892689
standard) dump of the tablespace contents, except that the two trailing
26902690
blocks of zeroes specified in the standard are omitted.
26912691
After the tar data is complete, and if a backup manifest was requested,
2692-
another CopyResponse result is sent, containing the manifest data for the
2692+
another CopyOutResponse result is sent, containing the manifest data for the
26932693
current base backup. In any case, a final ordinary result set will be
26942694
sent, containing the WAL end position of the backup, in the same format as
26952695
the start position.

0 commit comments

Comments
 (0)