1
1
<!--
2
- doc/src/sgml/ref/pg_receivexlog .sgml
2
+ doc/src/sgml/ref/pg_receivewal .sgml
3
3
PostgreSQL documentation
4
4
-->
5
5
6
- <refentry id="app-pgreceivexlog ">
7
- <indexterm zone="app-pgreceivexlog ">
8
- <primary>pg_receivexlog </primary>
6
+ <refentry id="app-pgreceivewal ">
7
+ <indexterm zone="app-pgreceivewal ">
8
+ <primary>pg_receivewal </primary>
9
9
</indexterm>
10
10
11
11
<refmeta>
12
- <refentrytitle>pg_receivexlog </refentrytitle>
12
+ <refentrytitle>pg_receivewal </refentrytitle>
13
13
<manvolnum>1</manvolnum>
14
14
<refmiscinfo>Application</refmiscinfo>
15
15
</refmeta>
16
16
17
17
<refnamediv>
18
- <refname>pg_receivexlog </refname>
18
+ <refname>pg_receivewal </refname>
19
19
<refpurpose>stream transaction logs from a <productname>PostgreSQL</productname> server</refpurpose>
20
20
</refnamediv>
21
21
22
22
<refsynopsisdiv>
23
23
<cmdsynopsis>
24
- <command>pg_receivexlog </command>
24
+ <command>pg_receivewal </command>
25
25
<arg rep="repeat"><replaceable>option</></arg>
26
26
</cmdsynopsis>
27
27
</refsynopsisdiv>
@@ -31,7 +31,7 @@ PostgreSQL documentation
31
31
Description
32
32
</title>
33
33
<para>
34
- <application>pg_receivexlog </application> is used to stream the transaction log
34
+ <application>pg_receivewal </application> is used to stream the transaction log
35
35
from a running <productname>PostgreSQL</productname> cluster. The transaction
36
36
log is streamed using the streaming replication protocol, and is written
37
37
to a local directory of files. This directory can be used as the archive
@@ -40,16 +40,16 @@ PostgreSQL documentation
40
40
</para>
41
41
42
42
<para>
43
- <application>pg_receivexlog </application> streams the transaction
43
+ <application>pg_receivewal </application> streams the transaction
44
44
log in real time as it's being generated on the server, and does not wait
45
45
for segments to complete like <xref linkend="guc-archive-command"> does.
46
46
For this reason, it is not necessary to set
47
47
<xref linkend="guc-archive-timeout"> when using
48
- <application>pg_receivexlog </application>.
48
+ <application>pg_receivewal </application>.
49
49
</para>
50
50
51
51
<para>
52
- Unlike the WAL receiver of a PostgreSQL standby server, <application>pg_receivexlog </>
52
+ Unlike the WAL receiver of a PostgreSQL standby server, <application>pg_receivewal </>
53
53
by default flushes WAL data only when a WAL file is closed.
54
54
The option <option>--synchronous</> must be specified to flush WAL data
55
55
in real time.
@@ -68,7 +68,7 @@ PostgreSQL documentation
68
68
69
69
<para>
70
70
If the connection is lost, or if it cannot be initially established,
71
- with a non-fatal error, <application>pg_receivexlog </application> will
71
+ with a non-fatal error, <application>pg_receivewal </application> will
72
72
retry the connection indefinitely, and reestablish streaming as soon
73
73
as possible. To avoid this behavior, use the <literal>-n</literal>
74
74
parameter.
@@ -132,17 +132,17 @@ PostgreSQL documentation
132
132
<term><option>--slot=<replaceable class="parameter">slotname</replaceable></option></term>
133
133
<listitem>
134
134
<para>
135
- Require <application>pg_receivexlog </application> to use an existing
135
+ Require <application>pg_receivewal </application> to use an existing
136
136
replication slot (see <xref linkend="streaming-replication-slots">).
137
- When this option is used, <application>pg_receivexlog </> will report
137
+ When this option is used, <application>pg_receivewal </> will report
138
138
a flush position to the server, indicating when each segment has been
139
139
synchronized to disk so that the server can remove that segment if it
140
140
is not otherwise needed.
141
141
</para>
142
142
143
143
<para>
144
144
When the replication client
145
- of <application>pg_receivexlog </application> is configured on the
145
+ of <application>pg_receivewal </application> is configured on the
146
146
server as a synchronous standby, then using a replication slot will
147
147
report the flush position to the server, but only when a WAL file is
148
148
closed. Therefore, that configuration will cause transactions on the
@@ -164,7 +164,7 @@ PostgreSQL documentation
164
164
165
165
<para>
166
166
This option should be specified if the replication client
167
- of <application>pg_receivexlog </application> is configured on the
167
+ of <application>pg_receivewal </application> is configured on the
168
168
server as a synchronous standby, to ensure that timely feedback is
169
169
sent to the server.
170
170
</para>
@@ -209,7 +209,7 @@ PostgreSQL documentation
209
209
</para>
210
210
<para>
211
211
The option is called <literal>--dbname</> for consistency with other
212
- client applications, but because <application>pg_receivexlog </application>
212
+ client applications, but because <application>pg_receivewal </application>
213
213
doesn't connect to any particular database in the cluster, database
214
214
name in the connection string will be ignored.
215
215
</para>
@@ -273,15 +273,15 @@ PostgreSQL documentation
273
273
<term><option>--password</option></term>
274
274
<listitem>
275
275
<para>
276
- Force <application>pg_receivexlog </application> to prompt for a
276
+ Force <application>pg_receivewal </application> to prompt for a
277
277
password before connecting to a database.
278
278
</para>
279
279
280
280
<para>
281
281
This option is never essential, since
282
- <application>pg_receivexlog </application> will automatically prompt
282
+ <application>pg_receivewal </application> will automatically prompt
283
283
for a password if the server demands password authentication.
284
- However, <application>pg_receivexlog </application> will waste a
284
+ However, <application>pg_receivewal </application> will waste a
285
285
connection attempt finding out that the server wants a password.
286
286
In some cases it is worth typing <option>-W</> to avoid the extra
287
287
connection attempt.
@@ -292,7 +292,7 @@ PostgreSQL documentation
292
292
</para>
293
293
294
294
<para>
295
- <application>pg_receivexlog </application> can perform one of the two
295
+ <application>pg_receivewal </application> can perform one of the two
296
296
following actions in order to control physical replication slots:
297
297
298
298
<variablelist>
@@ -327,7 +327,7 @@ PostgreSQL documentation
327
327
<term><option>--version</></term>
328
328
<listitem>
329
329
<para>
330
- Print the <application>pg_receivexlog </application> version and exit.
330
+ Print the <application>pg_receivewal </application> version and exit.
331
331
</para>
332
332
</listitem>
333
333
</varlistentry>
@@ -337,7 +337,7 @@ PostgreSQL documentation
337
337
<term><option>--help</></term>
338
338
<listitem>
339
339
<para>
340
- Show help about <application>pg_receivexlog </application> command line
340
+ Show help about <application>pg_receivewal </application> command line
341
341
arguments, and exit.
342
342
</para>
343
343
</listitem>
@@ -363,7 +363,7 @@ PostgreSQL documentation
363
363
<title>Notes</title>
364
364
365
365
<para>
366
- When using <application>pg_receivexlog </application> instead of
366
+ When using <application>pg_receivewal </application> instead of
367
367
<xref linkend="guc-archive-command"> as the main WAL backup method, it is
368
368
strongly recommended to use replication slots. Otherwise, the server is
369
369
free to recycle or remove transaction log files before they are backed up,
@@ -384,7 +384,7 @@ PostgreSQL documentation
384
384
<literal>mydbserver</literal> and store it in the local directory
385
385
<filename>/usr/local/pgsql/archive</filename>:
386
386
<screen>
387
- <prompt>$</prompt> <userinput>pg_receivexlog -h mydbserver -D /usr/local/pgsql/archive</userinput>
387
+ <prompt>$</prompt> <userinput>pg_receivewal -h mydbserver -D /usr/local/pgsql/archive</userinput>
388
388
</screen></para>
389
389
</refsect1>
390
390
0 commit comments