Skip to content

Commit f5fa419

Browse files
committed
update pg_dumpall.sgml to postgres-ref.sgml
1 parent b95193c commit f5fa419

File tree

8 files changed

+503
-228
lines changed

8 files changed

+503
-228
lines changed

postgresql/doc/src/sgml/ref/pg_dumpall.sgml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ ____________________________________________________________________________-->
254254
Specifies verbose mode. This will cause
255255
<application>pg_dumpall</application> to output start/stop
256256
times to the dump file, and progress messages to standard error.
257-
It will also enable verbose output in <application>pg_dump</application>.
257+
Repeating the option causes additional debug-level messages
258+
to appear on standard error.
259+
The option is also passed down to <application>pg_dump</application>.
258260
</para>
259261
</listitem>
260262
</varlistentry>
@@ -425,10 +427,7 @@ ____________________________________________________________________________-->
425427
the dump. Instead, fail if unable to lock a table within the specified
426428
<replaceable class="parameter">timeout</replaceable>. The timeout may be
427429
specified in any of the formats accepted by <command>SET
428-
statement_timeout</command>. Allowed values vary depending on the server
429-
version you are dumping from, but an integer number of milliseconds
430-
is accepted by all versions since 7.3. This option is ignored when
431-
dumping from a pre-7.3 server.
430+
statement_timeout</command>.
432431
</para>
433432
</listitem>
434433
</varlistentry>
@@ -511,6 +510,18 @@ ____________________________________________________________________________-->
511510
</listitem>
512511
</varlistentry>
513512

513+
<varlistentry>
514+
<term><option>-&minus;no-toast-compression</option></term>
515+
<listitem>
516+
<para>
517+
Do not output commands to set <acronym>TOAST</acronym> compression
518+
methods.
519+
With this option, all columns will be restored with the default
520+
compression setting.
521+
</para>
522+
</listitem>
523+
</varlistentry>
524+
514525
<varlistentry>
515526
<term><option>-&minus;no-unlogged-table-data</option></term>
516527
<listitem>
@@ -702,7 +713,9 @@ ____________________________________________________________________________-->
702713
<term><option>--verbose</option></term>
703714
<listitem>
704715
<para>
705-
指定细节模式。这将导致<application>pg_dumpall</application>向标准错误输出详细的对象注释以及转储文件的开始/停止时间,还有进度消息。它也会启用<application>pg_dump</application>中的细节输出。
716+
指定细节模式。这将导致<application>pg_dumpall</application>向标准错误输出详细的对象注释以及转储文件的开始/停止时间,还有进度消息。
717+
重复该选项会导致在标准错误上出现附加的调试级信息。
718+
这个选项还会被传递到<application>pg_dump</application>。
706719
</para>
707720
</listitem>
708721
</varlistentry>
@@ -826,7 +839,9 @@ ____________________________________________________________________________-->
826839
<term><option>--lock-wait-timeout=<replaceable class="parameter">timeout</replaceable></option></term>
827840
<listitem>
828841
<para>
829-
在转储的开始从不等待共享表锁的获得。而是在指定的<replaceable class="parameter">timeout</replaceable>内不能锁定一个表时失败。超时时长可以用<command>SET statement_timeout</command>接受的任何格式指定(允许的值根据你从其转出的服务器版本变化,但是从 7.3 以来的所有版本都接受一个整数表示的毫秒数。如果从 7.3 以前的服务器转出,这个选项会被忽略。)。
842+
在转储的开始从不等待共享表锁的获得。
843+
而是在指定的<replaceable class="parameter">timeout</replaceable>内不能锁定一个表时失败。
844+
超时时长可以用<command>SET statement_timeout</command>接受的任何格式指定。
830845
</para>
831846
</listitem>
832847
</varlistentry>
@@ -894,6 +909,16 @@ ____________________________________________________________________________-->
894909
</listitem>
895910
</varlistentry>
896911

912+
<varlistentry>
913+
<term><option>-&minus;no-toast-compression</option></term>
914+
<listitem>
915+
<para>
916+
不要输出命令以设置 <acronym>TOAST</acronym> 压缩方法。
917+
采用这个选项,所有列将会以默认压缩设置来恢复。
918+
</para>
919+
</listitem>
920+
</varlistentry>
921+
897922
<varlistentry>
898923
<term><option>--no-unlogged-table-data</option></term>
899924
<listitem>
@@ -965,7 +990,7 @@ ____________________________________________________________________________-->
965990
<listitem>
966991
<para>
967992
Specifies parameters used to connect to the server, as a <link
968-
linkend="libpq-connstring">connction string</link>; these
993+
linkend="libpq-connstring">connection string</link>; these
969994
will override any conflicting command line options.
970995
</para>
971996
<para>

postgresql/doc/src/sgml/ref/pg_receivewal.sgml

Lines changed: 53 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ ____________________________________________________________________________-->
1212
<indexterm zone="app-pgreceivewal">
1313
<primary>pg_receivewal</primary>
1414
</indexterm>
15-
15+
1616
<!--==========================orignal english content==========================
1717
<refmeta>
18-
<refentrytitle>pg_receivewal</refentrytitle>
18+
<refentrytitle><application>pg_receivewal</application></refentrytitle>
1919
<manvolnum>1</manvolnum>
2020
<refmiscinfo>Application</refmiscinfo>
2121
</refmeta>
2222
____________________________________________________________________________-->
2323
<refmeta>
24-
<refentrytitle>pg_receivewal</refentrytitle>
24+
<refentrytitle><application>pg_receivewal</application></refentrytitle>
2525
<manvolnum>1</manvolnum>
2626
<refmiscinfo>Application</refmiscinfo>
2727
</refmeta>
@@ -82,7 +82,7 @@ ____________________________________________________________________________-->
8282
<para>
8383
当预写式日志在服务器上被产生时,<application>pg_receivewal</application>实时以流的方式传输预写式日志,并且不像<xref linkend="guc-archive-command"/>那样等待段完成。由于这个原因,在使用<application>pg_receivewal</application>时不必设置<xref linkend="guc-archive-timeout"/>。
8484
</para>
85-
85+
8686
<!--==========================orignal english content==========================
8787
<para>
8888
Unlike the WAL receiver of a PostgreSQL standby server, <application>pg_receivewal</application>
@@ -125,6 +125,49 @@ ____________________________________________________________________________-->
125125
预写式日志在一个常规<productname>PostgreSQL</productname>连接上被以流式传送,并且使用复制协议。连接必须由一个具有<literal>REPLICATION</literal>权限(见<xref linkend="role-attributes"/>)的用户或者一个超级用户建立,并且<filename>pg_hba.conf</filename>必须允许复制连接。服务器也必须被配置一个足够高的<xref linkend="guc-max-wal-senders"/>来至少留出一个可用会话给流。
126126
</para>
127127

128+
<!--==========================orignal english content==========================
129+
<para>
130+
The starting point of the write-ahead log streaming is calculated when
131+
<application>pg_receivewal</application> starts:
132+
<orderedlist>
133+
<listitem>
134+
<para>
135+
First, scan the directory where the WAL segment files are written and
136+
find the newest completed segment file, using as starting point the
137+
beginning of the next WAL segment file. This is calculated independently
138+
on the compression method used to compress each segment.
139+
</para>
140+
</listitem>
141+
142+
<listitem>
143+
<para>
144+
If a starting point cannot be calculated with the previous method,
145+
the latest WAL flush location is used as reported by the server from
146+
a <literal>IDENTIFY_SYSTEM</literal> command.
147+
</para>
148+
</listitem>
149+
</orderedlist>
150+
</para>
151+
____________________________________________________________________________-->
152+
<para>
153+
The starting point of the write-ahead log streaming is calculated when
154+
<application>pg_receivewal</application> starts:
155+
<orderedlist>
156+
<listitem>
157+
<para>
158+
首先,扫描WAL段文件所写入的目录,并发现最新完成的段文件,作为下一个段文件的开始的起始点。
159+
这是独立计算的,根据用于压缩每个段的压缩方法。
160+
</para>
161+
</listitem>
162+
163+
<listitem>
164+
<para>
165+
如果用前面的方法无法计算出起点,最新的WAL刷写位置用作由服务器通过<literal>IDENTIFY_SYSTEM</literal>命令的报告。
166+
</para>
167+
</listitem>
168+
</orderedlist>
169+
</para>
170+
128171
<!--==========================orignal english content==========================
129172
<para>
130173
If the connection is lost, or if it cannot be initially established,
@@ -217,7 +260,7 @@ ____________________________________________________________________________-->
217260
</para>
218261
</listitem>
219262
</varlistentry>
220-
263+
221264
<varlistentry>
222265
<!--==========================orignal english content==========================
223266
<term><option>-&minus;if-not-exists</option></term>
@@ -236,7 +279,7 @@ ____________________________________________________________________________-->
236279
</para>
237280
</listitem>
238281
</varlistentry>
239-
282+
240283
<varlistentry>
241284
<!--==========================orignal english content==========================
242285
<term><option>-n</option></term>
@@ -288,7 +331,7 @@ ____________________________________________________________________________-->
288331
</para>
289332
</listitem>
290333
</varlistentry>
291-
334+
292335
<varlistentry>
293336
<!--==========================orignal english content==========================
294337
<term><option>-s <replaceable class="parameter">interval</replaceable></option></term>
@@ -364,7 +407,7 @@ ____________________________________________________________________________-->
364407
</para>
365408
</listitem>
366409
</varlistentry>
367-
410+
368411
<varlistentry>
369412
<!--==========================orignal english content==========================
370413
<term><option>-&minus;synchronous</option></term>
@@ -455,7 +498,7 @@ ____________________________________________________________________________-->
455498
<listitem>
456499
<para>
457500
Specifies parameters used to connect to the server, as a <link
458-
linkend="libpq-connstring">connction string</link>; these
501+
linkend="libpq-connstring">connection string</link>; these
459502
will override any conflicting command line options.
460503
</para>
461504
<para>
@@ -614,7 +657,7 @@ ____________________________________________________________________________-->
614657
</varlistentry>
615658
</variablelist>
616659
</para>
617-
660+
618661
<!--==========================orignal english content==========================
619662
<para>
620663
<application>pg_receivewal</application> can perform one of the two

postgresql/doc/src/sgml/ref/pg_resetwal.sgml

Lines changed: 52 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ PostgreSQL documentation
55

66
<refentry id="app-pgresetwal">
77
<!--==========================orignal english content==========================
8-
<indexterm zone="app-pgresetwal">
8+
<indexterm zone="app-pgresetwal">
99
<primary>pg_resetwal</primary>
1010
</indexterm>
1111
____________________________________________________________________________-->
12-
<indexterm zone="app-pgresetwal">
12+
<indexterm zone="app-pgresetwal">
1313
<primary>pg_resetwal</primary>
1414
</indexterm>
15-
15+
1616
<!--==========================orignal english content==========================
1717
<refmeta>
1818
<refentrytitle><application>pg_resetwal</application></refentrytitle>
@@ -42,40 +42,40 @@ ____________________________________________________________________________-->
4242
<cmdsynopsis>
4343
<command>pg_resetwal</command>
4444
<group choice="opt">
45-
<arg choice="plain"><option>-&minus;force</option></arg>
4645
<arg choice="plain"><option>-f</option></arg>
46+
<arg choice="plain"><option>-&minus;force</option></arg>
4747
</group>
4848
<group choice="opt">
49-
<arg choice="plain"><option>-&minus;dry-run</option></arg>
5049
<arg choice="plain"><option>-n</option></arg>
50+
<arg choice="plain"><option>-&minus;dry-run</option></arg>
5151
</group>
5252
<arg rep="repeat"><replaceable>option</replaceable></arg>
5353
<group choice="plain">
5454
<group choice="opt">
55-
<arg choice="plain"><option>-&minus;pgdata</option></arg>
5655
<arg choice="plain"><option>-D</option></arg>
56+
<arg choice="plain"><option>-&minus;pgdata</option></arg>
5757
</group>
58-
<replaceable class="parameter"> datadir</replaceable>
58+
<replaceable class="parameter">datadir</replaceable>
5959
</group>
6060
</cmdsynopsis>
6161
____________________________________________________________________________-->
6262
<cmdsynopsis>
6363
<command>pg_resetwal</command>
6464
<group choice="opt">
65-
<arg choice="plain"><option>--force</option></arg>
6665
<arg choice="plain"><option>-f</option></arg>
66+
<arg choice="plain"><option>--force</option></arg>
6767
</group>
6868
<group choice="opt">
69-
<arg choice="plain"><option>--dry-run</option></arg>
7069
<arg choice="plain"><option>-n</option></arg>
70+
<arg choice="plain"><option>--dry-run</option></arg>
7171
</group>
7272
<arg rep="repeat"><replaceable>option</replaceable></arg>
7373
<group choice="plain">
7474
<group choice="opt">
75-
<arg choice="plain"><option>--pgdata</option></arg>
7675
<arg choice="plain"><option>-D</option></arg>
76+
<arg choice="plain"><option>--pgdata</option></arg>
7777
</group>
78-
<replaceable class="parameter"> datadir</replaceable>
78+
<replaceable class="parameter">datadir</replaceable>
7979
</group>
8080
</cmdsynopsis>
8181
</refsynopsisdiv>
@@ -237,7 +237,7 @@ ____________________________________________________________________________-->
237237
<para>显示帮助然后退出。</para></listitem>
238238
</varlistentry>
239239
</variablelist>
240-
240+
241241
<!--==========================orignal english content==========================
242242
<para>
243243
The following options are only needed when
@@ -532,6 +532,45 @@ ____________________________________________________________________________-->
532532
</listitem>
533533
</varlistentry>
534534

535+
<varlistentry>
536+
<!--==========================orignal english content==========================
537+
<term><option>-u <replaceable class="parameter">xid</replaceable></option></term>
538+
____________________________________________________________________________-->
539+
<term><option>-u <replaceable class="parameter">xid</replaceable></option></term>
540+
<!--==========================orignal english content==========================
541+
<term><option>-&minus;oldest-transaction-id=<replaceable class="parameter">xid</replaceable></option></term>
542+
____________________________________________________________________________-->
543+
<term><option>--oldest-transaction-id=<replaceable class="parameter">xid</replaceable></option></term>
544+
<listitem>
545+
<!--==========================orignal english content==========================
546+
<para>
547+
Manually set the oldest unfrozen transaction ID.
548+
</para>
549+
____________________________________________________________________________-->
550+
<para>
551+
手工设置最老的未冻结事务ID。
552+
</para>
553+
554+
<!--==========================orignal english content==========================
555+
<para>
556+
A safe value can be determined by looking for the numerically smallest
557+
file name in the directory <filename>pg_xact</filename> under the data directory
558+
and then multiplying by 1048576 (0x100000). Note that the file names are in
559+
hexadecimal. It is usually easiest to specify the option value in
560+
hexadecimal too. For example, if <filename>0007</filename> is the smallest entry
561+
in <filename>pg_xact</filename>, <literal>-u 0x700000</literal> will work (five
562+
trailing zeroes provide the proper multiplier).
563+
</para>
564+
____________________________________________________________________________-->
565+
<para>
566+
一个安全值,可以通过在数据目录下的<filename>pg_xact</filename>目录中查找数字最小的文件名然后乘以1048576 (0x100000)的方式来确定。
567+
注意该文件名是十六进制的。
568+
以十六进制来指定选项值通常也是最简单的。
569+
例如,如果<filename>0007</filename>是<filename>pg_xact</filename>中最小的记录,<literal>-u 0x700000</literal>将有效(五个后补零提供适当的乘数)。
570+
</para>
571+
</listitem>
572+
</varlistentry>
573+
535574
<varlistentry>
536575
<!--==========================orignal english content==========================
537576
<term><option>-x <replaceable class="parameter">xid</replaceable></option></term>
@@ -576,7 +615,7 @@ ____________________________________________________________________________-->
576615
<title>Environment</title>
577616
____________________________________________________________________________-->
578617
<title>Environment</title>
579-
618+
580619
<variablelist>
581620
<varlistentry>
582621
<!--==========================orignal english content==========================

0 commit comments

Comments
 (0)