Skip to content

Commit 77cf3ba

Browse files
committed
通过脚本更新全体注释
1 parent e6bfea2 commit 77cf3ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+7249
-338
lines changed

postgresql/doc/src/sgml/amcheck.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ ____________________________________________________________________________-->
217217
structure. When the optional <parameter>rootdescend</parameter>
218218
argument is <literal>true</literal>, verification re-finds
219219
tuples on the leaf level by performing a new search from the
220-
root page for each tuple. The checks that can be performed by <function>bt_index_parent_check</function> are a superset of the
220+
root page for each tuple. The checks that can be performed by
221+
<function>bt_index_parent_check</function> are a superset of the
221222
checks that can be performed by <function>bt_index_check</function>.
222223
<function>bt_index_parent_check</function> can be thought of as
223224
a more thorough variant of <function>bt_index_check</function>:

postgresql/doc/src/sgml/arch-dev.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ ____________________________________________________________________________-->
179179

180180
<sect1 id="connect-estab">
181181
<!--==========================orignal english content==========================
182-
<title>How Connections are Established</title>
182+
<title>How Connections Are Established</title>
183183
____________________________________________________________________________-->
184184
<title>连接如何建立</title>
185185

postgresql/doc/src/sgml/backup.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,7 +2046,7 @@ ____________________________________________________________________________-->
20462046
<para>
20472047
The key part of all this is to set up a recovery configuration that
20482048
describes how you want to recover and how far the recovery should
2049-
run. The one thing that you absolutely must specify is the <varname>restore_command</varname>,
2049+
run. The one thing that you absolutely must specify is the <varname>restore_command</varname>,
20502050
which tells <productname>PostgreSQL</productname> how to retrieve archived
20512051
WAL file segments. Like the <varname>archive_command</varname>, this is
20522052
a shell command string. It can contain <literal>%f</literal>, which is
@@ -2284,7 +2284,7 @@ ____________________________________________________________________________-->
22842284
that was current when the base backup was taken. If you wish to recover
22852285
into some child timeline (that is, you want to return to some state that
22862286
was itself generated after a recovery attempt), you need to specify the
2287-
target timeline ID in <xref linkend="guc-recovery-target-timeline"/>. You cannot recover into
2287+
target timeline ID in <xref linkend="guc-recovery-target-timeline"/>. You cannot recover into
22882288
timelines that branched off earlier than the base backup.
22892289
</para>
22902290
____________________________________________________________________________-->

postgresql/doc/src/sgml/bki.sgml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,18 +586,65 @@ ____________________________________________________________________________-->
586586
要为一个新的预装载行找到一个可用的OID,可以运行脚本<filename>src/include/catalog/unused_oids</filename>。它能打印出未被使用的OID的闭区间范围(例如,输出行<quote>45-900</quote>表示OID 45到900都还没有被分配出去)。当前,OID 1-9999被保留给手工分配,<filename>unused_oids</filename>脚本会简单地查看目录头部以及<filename>.dat</filename>文件来看看哪些OID没有出现。也可以使用<filename>duplicate_oids</filename>脚本来检查错误(<filename>genbki.pl</filename>将为没有手工分配给他们的任何行分配OID,还会在编译时检测重复的OID)。
587587
</para>
588588

589+
<!--==========================orignal english content==========================
590+
<para>
591+
When choosing OIDs for a patch that is not expected to be committed
592+
immediately, best practice is to use a group of more-or-less
593+
consecutive OIDs starting with some random choice in the range
594+
8000&mdash;9999. This minimizes the risk of OID collisions with other
595+
patches being developed concurrently. To keep the 8000&mdash;9999
596+
range free for development purposes, after a patch has been committed
597+
to the master git repository its OIDs should be renumbered into
598+
available space below that range. Typically, this will be done
599+
near the end of each development cycle, moving all OIDs consumed by
600+
patches committed in that cycle at the same time. The script
601+
<filename>renumber_oids.pl</filename> can be used for this purpose.
602+
If an uncommitted patch is found to have OID conflicts with some
603+
recently-committed patch, <filename>renumber_oids.pl</filename> may
604+
also be useful for recovering from that situation.
605+
</para>
606+
____________________________________________________________________________-->
589607
<para>
590608
在为一个不会立即提交的补丁选择OID时,最佳实践是使用一组接近连续的OID,以8000&mdash;9999范围中随机选择的值作为开始。这样就将其与其他同时开发的补丁的冲突的风险降至最低。为了保持8000&mdash;9999范围对于开发来讲可自由使用,在补丁提交到git库之后,应使用低于该范围的可用空间重新编号。通常这项工作会在接近每次开发周期的尾声时做,与此同时移动由该周期提交的补丁所消费掉的所有OID。<filename>renumber_oids.pl</filename>脚本可用来完成该项工作。如果发现一个未提交的补丁与一些近来提交的补丁有OID冲突,<filename>renumber_oids.pl</filename>也可用于从此状况下的恢复。
591609
</para>
592610

611+
<!--==========================orignal english content==========================
612+
<para>
613+
Because of this convention of possibly renumbering OIDs assigned by
614+
patches, the OIDs assigned by a patch should not be considered stable
615+
until the patch has been included in an official release. We do not
616+
change manually-assigned object OIDs once released, however, as that
617+
would create assorted compatibility problems.
618+
</para>
619+
____________________________________________________________________________-->
593620
<para>
594621
因为此约定可能会对补丁程序分配的OID重新编号,在补丁纳入到官方发布版本之前,补丁所分配的OID不应该认为是稳定的。一旦发布,我们并不修改手工分配的对象OID,但是那样会产生各种各样的兼容性问题。
595622
</para>
596623

624+
<!--==========================orignal english content==========================
625+
<para>
626+
If <filename>genbki.pl</filename> needs to assign an OID to a catalog
627+
entry that does not have a manually-assigned OID, it will use a value in
628+
the range 10000&mdash;11999. The server's OID counter is set to 12000
629+
at the start of a bootstrap run. Thus objects created by regular SQL
630+
commands during the later phases of bootstrap, such as objects created
631+
while running the <filename>information_schema.sql</filename> script,
632+
receive OIDs of 12000 or above.
633+
</para>
634+
____________________________________________________________________________-->
597635
<para>
598636
如果需要为没有手工分配的OID的目录条目分配OID,<filename>genbki.pl</filename>将使用10000&mdash;11999范围内的值。在自举运行的开始,服务器的OID计数器设置为12000 。这样自举的后期由SQL命令创建的对象,例如运行<filename>information_schema.sql</filename>脚本时创建的对象,接收的OID为12000或更高。
599637
</para>
600638

639+
<!--==========================orignal english content==========================
640+
<para>
641+
OIDs assigned during normal database operation are constrained to be
642+
16384 or higher. This ensures that the range 10000&mdash;16383 is free
643+
for OIDs assigned automatically by <filename>genbki.pl</filename> or
644+
during bootstrap. These automatically-assigned OIDs are not considered
645+
stable, and may change from one installation to another.
646+
</para>
647+
____________________________________________________________________________-->
601648
<para>
602649
在正常数据库操作期间分配的OID限制为16384或更高。这样确保对于<filename>genbki.pl</filename>自动分配或自举过程中的OID可以使用范围10000&mdash;16383内的值 。这些自动分配的OID不稳定,从一种安装到另一安装可能会改变。
603650
</para>
@@ -1153,7 +1200,6 @@ ____________________________________________________________________________-->
11531200
<replaceable class="parameter">tableoid</replaceable>
11541201
<optional><literal>bootstrap</literal></optional>
11551202
<optional><literal>shared_relation</literal></optional>
1156-
<optional><literal>without_oids</literal></optional>
11571203
<optional><literal>rowtype_oid</literal> <replaceable>oid</replaceable></optional>
11581204
(<replaceable class="parameter">name1</replaceable> =
11591205
<replaceable class="parameter">type1</replaceable>

postgresql/doc/src/sgml/btree.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ returns bool
465465
<!--==========================orignal english content==========================
466466
<para>
467467
The essential semantics of an <function>in_range</function> function
468-
depend on the two boolean flag parameters. It should add or
468+
depend on the two Boolean flag parameters. It should add or
469469
subtract <replaceable>base</replaceable>
470470
and <replaceable>offset</replaceable>, then
471471
compare <replaceable>val</replaceable> to the result, as follows:

0 commit comments

Comments
 (0)