1
1
<!--
2
- doc/src/sgml/ref/pg_xlogdump .sgml
2
+ doc/src/sgml/ref/pg_waldump .sgml
3
3
PostgreSQL documentation
4
4
-->
5
5
6
- <refentry id="pgxlogdump ">
6
+ <refentry id="pgwaldump ">
7
7
<!--==========================orignal english content==========================
8
- <indexterm zone="pgxlogdump ">
9
- <primary>pg_xlogdump </primary>
8
+ <indexterm zone="pgwaldump ">
9
+ <primary>pg_waldump </primary>
10
10
</indexterm>
11
11
____________________________________________________________________________-->
12
- <indexterm zone="pgxlogdump ">
13
- <primary>pg_xlogdump </primary>
12
+ <indexterm zone="pgwaldump ">
13
+ <primary>pg_waldump </primary>
14
14
</indexterm>
15
15
16
16
<!--==========================orignal english content==========================
17
17
<refmeta>
18
- <refentrytitle><application>pg_xlogdump </application></refentrytitle>
18
+ <refentrytitle><application>pg_waldump </application></refentrytitle>
19
19
<manvolnum>1</manvolnum>
20
20
<refmiscinfo>Application</refmiscinfo>
21
21
</refmeta>
22
22
____________________________________________________________________________-->
23
23
<refmeta>
24
- <refentrytitle><application>pg_xlogdump </application></refentrytitle>
24
+ <refentrytitle><application>pg_waldump </application></refentrytitle>
25
25
<manvolnum>1</manvolnum>
26
26
<refmiscinfo>Application</refmiscinfo>
27
27
</refmeta>
28
28
29
29
<!--==========================orignal english content==========================
30
30
<refnamediv>
31
- <refname>pg_xlogdump </refname>
31
+ <refname>pg_waldump </refname>
32
32
<refpurpose>display a human-readable rendering of the write-ahead log of a <productname>PostgreSQL</productname> database cluster</refpurpose>
33
33
</refnamediv>
34
34
____________________________________________________________________________-->
35
35
<refnamediv>
36
- <refname>pg_xlogdump </refname>
36
+ <refname>pg_waldump </refname>
37
37
<refpurpose>以人类可读的形式显示一个<productname>PostgreSQL</productname>
38
38
数据库集簇的预写式日志</refpurpose>
39
39
</refnamediv>
40
40
41
41
<refsynopsisdiv>
42
42
<!--==========================orignal english content==========================
43
43
<cmdsynopsis>
44
- <command>pg_xlogdump </command>
44
+ <command>pg_waldump </command>
45
45
<arg rep="repeat" choice="opt"><option>option</option></arg>
46
46
<arg choice="opt"><option>startseg</option>
47
47
<arg choice="opt"><option>endseg</option></arg>
48
48
</arg>
49
49
</cmdsynopsis>
50
50
____________________________________________________________________________-->
51
51
<cmdsynopsis>
52
- <command>pg_xlogdump </command>
52
+ <command>pg_waldump </command>
53
53
<arg rep="repeat" choice="opt"><option>option</option></arg>
54
54
<arg choice="opt"><option>startseg</option>
55
55
<arg choice="opt"><option>endseg</option></arg>
56
56
</arg>
57
57
</cmdsynopsis>
58
58
</refsynopsisdiv>
59
59
60
- <refsect1 id="R1-APP-PGXLOGDUMP -1">
60
+ <refsect1 id="R1-APP-PGWALDUMP -1">
61
61
<!--==========================orignal english content==========================
62
62
<title>Description</title>
63
63
____________________________________________________________________________-->
64
64
<title>简介</title>
65
65
<!--==========================orignal english content==========================
66
66
<para>
67
- <command>pg_xlogdump </command> displays the write-ahead log (WAL) and is mainly
67
+ <command>pg_waldump </command> displays the write-ahead log (WAL) and is mainly
68
68
useful for debugging or educational purposes.
69
69
</para>
70
70
____________________________________________________________________________-->
71
71
<para>
72
- <command>pg_xlogdump </command>显示预写式日志(WAL),它主要
72
+ <command>pg_waldump </command>显示预写式日志(WAL),它主要
73
73
用于调试或者教育目的。
74
74
</para>
75
75
@@ -131,7 +131,7 @@ ____________________________________________________________________________-->
131
131
<term><option>-−end=<replaceable>end</replaceable></option></term>
132
132
<listitem>
133
133
<para>
134
- Stop reading at the specified log position , instead of reading to the
134
+ Stop reading at the specified WAL location , instead of reading to the
135
135
end of the log stream.
136
136
</para>
137
137
</listitem>
@@ -163,9 +163,12 @@ ____________________________________________________________________________-->
163
163
<term><option>-−path=<replaceable>path</replaceable></option></term>
164
164
<listitem>
165
165
<para>
166
- Directory in which to find log segment files. The default is to search
167
- for them in the <literal>pg_xlog</literal> subdirectory of the current
168
- directory.
166
+ Specifies a directory to search for log segment files or a
167
+ directory with a <literal>pg_wal</literal> subdirectory that
168
+ contains such files. The default is to search in the current
169
+ directory, the <literal>pg_wal</literal> subdirectory of the
170
+ current directory, and the <literal>pg_wal</literal> subdirectory
171
+ of <envar>PGDATA</envar>.
169
172
</para>
170
173
</listitem>
171
174
</varlistentry>
@@ -187,7 +190,7 @@ ____________________________________________________________________________-->
187
190
<term><option>-−start=<replaceable>start</replaceable></option></term>
188
191
<listitem>
189
192
<para>
190
- Log position at which to start reading. The default is to start reading
193
+ WAL location at which to start reading. The default is to start reading
191
194
the first valid log record found in the earliest file found.
192
195
</para>
193
196
</listitem>
@@ -210,7 +213,7 @@ ____________________________________________________________________________-->
210
213
<term><option>-−version</></term>
211
214
<listitem>
212
215
<para>
213
- Print the <application>pg_xlogdump </application> version and exit.
216
+ Print the <application>pg_waldump </application> version and exit.
214
217
</para>
215
218
</listitem>
216
219
</varlistentry>
@@ -242,7 +245,7 @@ ____________________________________________________________________________-->
242
245
<term><option>-−help</></term>
243
246
<listitem>
244
247
<para>
245
- Show help about <application>pg_xlogdump </application> command line
248
+ Show help about <application>pg_waldump </application> command line
246
249
arguments, and exit.
247
250
</para>
248
251
</listitem>
@@ -289,7 +292,7 @@ ____________________________________________________________________________-->
289
292
<term><option>--end=<replaceable>end</replaceable></option></term>
290
293
<listitem>
291
294
<para>
292
- 在指定的日志位置停止读取 ,而不是一直读取到日志流的末尾。
295
+ 在指定的WAL位置停止读取 ,而不是一直读取到日志流的末尾。
293
296
</para>
294
297
</listitem>
295
298
</varlistentry>
@@ -319,8 +322,9 @@ ____________________________________________________________________________-->
319
322
<term><option>--path=<replaceable>path</replaceable></option></term>
320
323
<listitem>
321
324
<para>
322
- 要在哪个目录中寻找日志段文件。默认是在当前目录的<literal>pg_xlog</literal>
323
- 子目录中搜索。
325
+ 指定搜索日志段文件的目录或包含这些文件的包含<literal>pg_wal</literal>子目录的目录。
326
+ 缺省值是在当前目录中搜索,当前目录的<literal>pg_wal</literal>子目录和
327
+ <envar>PGDATA</envar>的<literal>pg_wal</literal>子目录。
324
328
</para>
325
329
</listitem>
326
330
</varlistentry>
@@ -341,7 +345,7 @@ ____________________________________________________________________________-->
341
345
<term><option>--start=<replaceable>start</replaceable></option></term>
342
346
<listitem>
343
347
<para>
344
- 要从哪个日志位置开始读取 。默认是从找到的最早的文件的第一个可用日志记录开始。
348
+ 要从哪个WAL位置开始读取 。默认是从找到的最早的文件的第一个可用日志记录开始。
345
349
</para>
346
350
</listitem>
347
351
</varlistentry>
@@ -362,7 +366,7 @@ ____________________________________________________________________________-->
362
366
<term><option>--version</></term>
363
367
<listitem>
364
368
<para>
365
- 打印<application>pg_xlogdump </application>版本并且退出。
369
+ 打印<application>pg_waldump </application>版本并且退出。
366
370
</para>
367
371
</listitem>
368
372
</varlistentry>
@@ -394,7 +398,7 @@ ____________________________________________________________________________-->
394
398
<term><option>--help</></term>
395
399
<listitem>
396
400
<para>
397
- 显示有关<application>pg_xlogdump </application>命令行参数的帮助并且退出。
401
+ 显示有关<application>pg_waldump </application>命令行参数的帮助并且退出。
398
402
</para>
399
403
</listitem>
400
404
</varlistentry>
@@ -429,13 +433,13 @@ ____________________________________________________________________________-->
429
433
430
434
<!--==========================orignal english content==========================
431
435
<para>
432
- <application>pg_xlogdump </> cannot read WAL files with suffix
436
+ <application>pg_waldump </> cannot read WAL files with suffix
433
437
<literal>.partial</>. If those files need to be read, <literal>.partial</>
434
438
suffix needs to be removed from the file name.
435
439
</para>
436
440
____________________________________________________________________________-->
437
441
<para>
438
- <application>pg_xlogdump </>不能读取具有后缀<literal>.partial</>
442
+ <application>pg_waldump </>不能读取具有后缀<literal>.partial</>
439
443
的 WAL 文件。如果需要读取那些文件,需要从文件名中移除
440
444
<literal>.partial</>后缀。
441
445
</para>
0 commit comments