@@ -1320,16 +1320,16 @@ the connection to be used for logical replication from that database.
13201320<programlisting>
13211321psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
13221322</programlisting>
1323- However it is often more useful to use
1324- <application>pg_receivexlog</application > (for physical replication) or
1325- <application>pg_recvlogical</application > (for logical replication).
1323+ However, it is often more useful to use
1324+ <xref linkend="app-pgreceivexlog" > (for physical replication) or
1325+ <xref linkend="app-pgrecvlogical" > (for logical replication).
13261326</para>
13271327
13281328<para>
13291329The commands accepted in walsender mode are:
13301330<variablelist>
13311331 <varlistentry>
1332- <term>IDENTIFY_SYSTEM
1332+ <term><literal> IDENTIFY_SYSTEM</literal>
13331333 <indexterm><primary>IDENTIFY_SYSTEM</primary></indexterm>
13341334 </term>
13351335 <listitem>
@@ -1342,7 +1342,7 @@ The commands accepted in walsender mode are:
13421342 <variablelist>
13431343 <varlistentry>
13441344 <term>
1345- systemid
1345+ <literal> systemid</literal> (<type>text</type>)
13461346 </term>
13471347 <listitem>
13481348 <para>
@@ -1355,19 +1355,19 @@ The commands accepted in walsender mode are:
13551355
13561356 <varlistentry>
13571357 <term>
1358- timeline
1358+ <literal> timeline</literal> (<type>int4</type>)
13591359 </term>
13601360 <listitem>
13611361 <para>
1362- CurrentTimelineID . Also useful to check that the standby is
1362+ Currenttimeline ID . Also useful to check that the standby is
13631363 consistent with the master.
13641364 </para>
13651365 </listitem>
13661366 </varlistentry>
13671367
13681368 <varlistentry>
13691369 <term>
1370- xlogpos
1370+ <literal> xlogpos</literal> (<type>text</type>)
13711371 </term>
13721372 <listitem>
13731373 <para>
@@ -1379,11 +1379,11 @@ The commands accepted in walsender mode are:
13791379
13801380 <varlistentry>
13811381 <term>
1382- dbname
1382+ <literal> dbname</literal> (<type>text</type>)
13831383 </term>
13841384 <listitem>
13851385 <para>
1386- Database connected to orNULL .
1386+ Database connected to ornull .
13871387 </para>
13881388 </listitem>
13891389 </varlistentry>
@@ -1394,7 +1394,7 @@ The commands accepted in walsender mode are:
13941394 </varlistentry>
13951395
13961396 <varlistentry>
1397- <term>TIMELINE_HISTORY <replaceable class="parameter">tli</replaceable>
1397+ <term><literal> TIMELINE_HISTORY</literal> <replaceable class="parameter">tli</replaceable>
13981398 <indexterm><primary>TIMELINE_HISTORY</primary></indexterm>
13991399 </term>
14001400 <listitem>
@@ -1408,18 +1408,18 @@ The commands accepted in walsender mode are:
14081408 <variablelist>
14091409 <varlistentry>
14101410 <term>
1411- filename
1411+ <literal> filename</literal> (<type>text</type>)
14121412 </term>
14131413 <listitem>
14141414 <para>
1415- Filename of the timeline history file, e.g <filename>00000002.history</>.
1415+ File name of the timeline history file, e.g., <filename>00000002.history</>.
14161416 </para>
14171417 </listitem>
14181418 </varlistentry>
14191419
14201420 <varlistentry>
14211421 <term>
1422- content
1422+ <literal> content</literal> (<type>bytea</type>)
14231423 </term>
14241424 <listitem>
14251425 <para>
@@ -1434,7 +1434,7 @@ The commands accepted in walsender mode are:
14341434 </varlistentry>
14351435
14361436 <varlistentry>
1437- <term>CREATE_REPLICATION_SLOT <replaceable class="parameter">slot_name</> { <literal>PHYSICAL</> [ RESERVE_WAL ] | <literal>LOGICAL</> <replaceable class="parameter">output_plugin</> }
1437+ <term><literal> CREATE_REPLICATION_SLOT</literal> <replaceable class="parameter">slot_name</> { <literal>PHYSICAL</> [<literal> RESERVE_WAL</> ] | <literal>LOGICAL</> <replaceable class="parameter">output_plugin</> }
14381438 <indexterm><primary>CREATE_REPLICATION_SLOT</primary></indexterm>
14391439 </term>
14401440 <listitem>
@@ -1469,7 +1469,7 @@ The commands accepted in walsender mode are:
14691469 <listitem>
14701470 <para>
14711471 Specify that this physical replication reserves <acronym>WAL</>
1472- immediately; otherwise <acronym>WAL</> is only reserved upon
1472+ immediately. Otherwise, <acronym>WAL</> is only reserved upon
14731473 connection from a streaming replication client.
14741474 </para>
14751475 </listitem>
@@ -1479,7 +1479,7 @@ The commands accepted in walsender mode are:
14791479 </varlistentry>
14801480
14811481 <varlistentry>
1482- <term>START_REPLICATION [ <literal>SLOT</literal> <replaceable class="parameter">slot_name</>] [<literal>PHYSICAL</literal>] <replaceable class="parameter">XXX/XXX</> [<literal>TIMELINE</literal> <replaceable class="parameter">tli</>]
1482+ <term><literal> START_REPLICATION</literal> [ <literal>SLOT</literal> <replaceable class="parameter">slot_name</> ] [ <literal>PHYSICAL</literal> ] <replaceable class="parameter">XXX/XXX</> [ <literal>TIMELINE</literal> <replaceable class="parameter">tli</> ]
14831483 <indexterm><primary>START_REPLICATION</primary></indexterm>
14841484 </term>
14851485 <listitem>
@@ -1489,7 +1489,7 @@ The commands accepted in walsender mode are:
14891489 If <literal>TIMELINE</literal> option is specified,
14901490 streaming starts on timeline <replaceable class="parameter">tli</>;
14911491 otherwise, the server's current timeline is selected. The server can
1492- reply with an error,e.g. if the requested section of WAL has already
1492+ reply with an error,for example if the requested section of WAL has already
14931493 been recycled. On success, server responds with a CopyBothResponse
14941494 message, and then starts to stream WAL to the frontend.
14951495 </para>
@@ -1503,9 +1503,9 @@ The commands accepted in walsender mode are:
15031503 </para>
15041504
15051505 <para>
1506- If the client requests a timeline that's not the latest, but is part of
1506+ If the client requests a timeline that's not the latest but is part of
15071507 the history of the server, the server will stream all the WAL on that
1508- timeline starting from the requestedstartpoint, up to the point where
1508+ timeline starting from the requestedstart point up to the point where
15091509 the server switched to another timeline. If the client requests
15101510 streaming at exactly the end of an old timeline, the server responds
15111511 immediately with CommandComplete without entering COPY mode.
@@ -1516,8 +1516,8 @@ The commands accepted in walsender mode are:
15161516 the server will end streaming by exiting the COPY mode. When the client
15171517 acknowledges this by also exiting COPY mode, the server sends a result
15181518 set with one row and two columns, indicating the next timeline in this
1519- server's history. The first column is the next timeline's ID, and the
1520- second column is theXLOG position where the switch happened. Usually,
1519+ server's history. The first column is the next timeline's ID (type <type>int8</type>) , and the
1520+ second column is theWAL position where the switch happened (type <type>text</type>) . Usually,
15211521 the switch position is the end of the WAL that was streamed, but there
15221522 are corner cases where the server can send some WAL from the old
15231523 timeline that it has not itself replayed before promoting. Finally, the
@@ -1809,12 +1809,12 @@ The commands accepted in walsender mode are:
18091809 </listitem>
18101810 </varlistentry>
18111811 <varlistentry>
1812- <term>START_REPLICATION <literal>SLOT</literal> <replaceable class="parameter">slot_name</> <literal>LOGICAL</literal> <replaceable class="parameter">XXX/XXX</> [ ( <replaceable>option_name</replaceable> [<replaceable>option_value</replaceable>] [, ... ] ) ]</term>
1812+ <term><literal> START_REPLICATION</literal> <literal>SLOT</literal> <replaceable class="parameter">slot_name</> <literal>LOGICAL</literal> <replaceable class="parameter">XXX/XXX</> [ ( <replaceable>option_name</replaceable> [ <replaceable>option_value</replaceable> ] [, ...] ) ]</term>
18131813 <listitem>
18141814 <para>
18151815 Instructs server to start streaming WAL for logical replication, starting
18161816 at WAL position <replaceable class="parameter">XXX/XXX</>. The server can
1817- reply with an error,e.g. if the requested section of WAL has already
1817+ reply with an error,for example if the requested section of WAL has already
18181818 been recycled. On success, server responds with a CopyBothResponse
18191819 message, and then starts to stream WAL to the frontend.
18201820 </para>
@@ -1871,7 +1871,7 @@ The commands accepted in walsender mode are:
18711871 </varlistentry>
18721872
18731873 <varlistentry>
1874- <term>DROP_REPLICATION_SLOT <replaceable class="parameter">slot_name</>
1874+ <term><literal> DROP_REPLICATION_SLOT</literal> <replaceable class="parameter">slot_name</>
18751875 <indexterm><primary>DROP_REPLICATION_SLOT</primary></indexterm>
18761876 </term>
18771877 <listitem>
@@ -1893,7 +1893,7 @@ The commands accepted in walsender mode are:
18931893 </varlistentry>
18941894
18951895 <varlistentry>
1896- <term>BASE_BACKUP [ <literal>LABEL</literal> <replaceable>'label'</replaceable>] [<literal>PROGRESS</literal>] [<literal>FAST</literal>] [<literal>WAL</literal>] [<literal>NOWAIT</literal>] [<literal>MAX_RATE</literal> <replaceable>rate</replaceable>] [<literal>TABLESPACE_MAP</literal>]
1896+ <term><literal> BASE_BACKUP</literal> [ <literal>LABEL</literal> <replaceable>'label'</replaceable> ] [ <literal>PROGRESS</literal> ] [ <literal>FAST</literal> ] [ <literal>WAL</literal> ] [ <literal>NOWAIT</literal> ] [ <literal>MAX_RATE</literal> <replaceable>rate</replaceable> ] [ <literal>TABLESPACE_MAP</literal> ]
18971897 <indexterm><primary>BASE_BACKUP</primary></indexterm>
18981898 </term>
18991899 <listitem>
@@ -1923,10 +1923,10 @@ The commands accepted in walsender mode are:
19231923 send back an approximate size in the header of each tablespace, which
19241924 can be used to calculate how far along the stream is done. This is
19251925 calculated by enumerating all the file sizes once before the transfer
1926- is even started, andmay as such have a negative impact on the
1927- performance - in particular itmay take longer before the first data
1926+ is even started, andmight as such have a negative impact on the
1927+ performance. In particular, itmight take longer before the first data
19281928 is streamed. Since the database files can change during the backup,
1929- the size is only approximate andmay both grow and shrink between
1929+ the size is only approximate andmight both grow and shrink between
19301930 the time of approximation and the sending of the actual files.
19311931 </para>
19321932 </listitem>
@@ -1957,7 +1957,7 @@ The commands accepted in walsender mode are:
19571957 <term><literal>NOWAIT</literal></term>
19581958 <listitem>
19591959 <para>
1960- By default, the backup will wait until the last requiredxlog
1960+ By default, the backup will wait until the last requiredWAL
19611961 segment has been archived, or emit a warning if log archiving is
19621962 not enabled. Specifying <literal>NOWAIT</literal> disables both
19631963 the waiting and the warning, leaving the client responsible for
@@ -2010,37 +2010,37 @@ The commands accepted in walsender mode are:
20102010 The fields in this row are:
20112011 <variablelist>
20122012 <varlistentry>
2013- <term>spcoid</term>
2013+ <term><literal> spcoid</literal> (<type>oid</type>) </term>
20142014 <listitem>
20152015 <para>
2016- Theoid of the tablespace, or<literal>NULL</> if it's the base
2016+ TheOID of the tablespace, ornull if it's the base
20172017 directory.
20182018 </para>
20192019 </listitem>
20202020 </varlistentry>
20212021 <varlistentry>
2022- <term>spclocation</term>
2022+ <term><literal> spclocation</literal> (<type>text</type>) </term>
20232023 <listitem>
20242024 <para>
2025- The full path of the tablespace directory, or<literal>NULL</>
2025+ The full path of the tablespace directory, ornull
20262026 if it's the base directory.
20272027 </para>
20282028 </listitem>
20292029 </varlistentry>
20302030 <varlistentry>
2031- <term>size</term>
2031+ <term><literal> size</literal> (<type>int8</type>) </term>
20322032 <listitem>
20332033 <para>
20342034 The approximate size of the tablespace, if progress report has
2035- been requested; otherwise it's<literal>NULL</> .
2035+ been requested; otherwise it'snull .
20362036 </para>
20372037 </listitem>
20382038 </varlistentry>
20392039 </variablelist>
20402040 </para>
20412041 <para>
20422042 After the second regular result set, one or more CopyResponse results
2043- will be sent, one forPGDATA and one for each additional tablespace other
2043+ will be sent, one forthe main data directory and one for each additional tablespace other
20442044 than <literal>pg_default</> and <literal>pg_global</>. The data in
20452045 the CopyResponse results will be a tar format (following the
20462046 <quote>ustar interchange format</> specified in the POSIX 1003.1-2008
@@ -2093,14 +2093,9 @@ The commands accepted in walsender mode are:
20932093 </para>
20942094 </listitem>
20952095 </itemizedlist>
2096- Owner, group and file mode are set if the underlying file system on
2096+ Owner, group, and file mode are set if the underlying file system on
20972097 the server supports it.
20982098 </para>
2099- <para>
2100- Once all tablespaces have been sent, a final regular result set will
2101- be sent. This result set contains the end position of the
2102- backup, given in XLogRecPtr format as a single column in a single row.
2103- </para>
21042099 </listitem>
21052100 </varlistentry>
21062101</variablelist>