Skip to content

Commit 83e64b6

Browse files
committed
Merge branch 'master' of https://github.com/chegong18/pgdoc14-cn
2 parents 2910d67 + c34a5c3 commit 83e64b6

File tree

187 files changed

+7419
-2550
lines changed

Some content is hidden

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

187 files changed

+7419
-2550
lines changed

COPYRIGHT

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
PostgreSQL Database Management System
2+
(formerly known as Postgres, then as Postgres95)
3+
4+
Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
5+
6+
Portions Copyright (c) 1994, The Regents of the University of California
7+
8+
Permission to use, copy, modify, and distribute this software and its
9+
documentation for any purpose, without fee, and without a written agreement
10+
is hereby granted, provided that the above copyright notice and this
11+
paragraph and the following two paragraphs appear in all copies.
12+
13+
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
14+
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
15+
LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
16+
DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE
17+
POSSIBILITY OF SUCH DAMAGE.
18+
19+
THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
20+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
21+
AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
22+
ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
23+
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ https://github.com/postgres-cn/pgdoc-cn/releases
112112

113113
关于html页面和sgml文件的对应关系,可通过点击“在线阅读”web页面右上角的“纠错本页面”链接跳转到Github仓库中的相应sgml文件的编辑页面。
114114

115+
116+
## 关于许可
117+
关于本翻译文档的使用,遵从[PostgreSQL licence](https://www.postgresql.org/about/licence/)
118+
119+
115120
## 其它
116121
1. Github仓库中的sgml文件编码是UTF8。
117122
2. Github仓库中的修正会由不定期的反映到在线中文手册中,如果发生了编译错误,可查看相应版本的日志文件,比如:[http://postgres.cn/docs/13/build.log](http://postgres.cn/docs/13/build.log)

postgresql/doc/src/sgml/btree.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ ____________________________________________________________________________-->
10361036
在 MVCC下B-Tree索引不能直接感知,同一个逻辑表行可能存在多个现存版本;对于一个索引来说,每个元组都是一个需要其自己的索引条目的独立的对象。
10371037
<quote>Version churn</quote>元组有时可能会积累,并且对查询延迟和吞吐量产生影响。
10381038
这通常发生在<command>UPDATE</command>较为繁重的工作负载中,其中大多数单独的更新不能应用<acronym>HOT</acronym>优化。
1039-
在<command>UPDATE</command>更改仅一个被一个索引覆盖的列期间,<emphasis>总是</emphasis> 需要一个新的索引元组 &mdash一个用于表上的<emphasis>each and every</emphasis>索引。
1039+
在<command>UPDATE</command>更改仅一个被一个索引覆盖的列期间,<emphasis>总是</emphasis> 需要一个新的索引元组 &mdash;一个用于表上的<emphasis>each and every</emphasis>索引。
10401040
特别注意,这包括没有被<command>UPDATE</command>进行<quote>logically modified</quote>的索引。
10411041
所有索引将需要一个后继的物理索引元组,用于指向表中的最新版本。
10421042
每个索引中的每个新元组通常需要与原始的<quote>updated</quote>元组共存很短一段时间(通常直到<command>UPDATE</command>事务提交后不久)。

postgresql/doc/src/sgml/catalogs.sgml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2694,7 +2694,7 @@ ____________________________________________________________________________-->
26942694
</para>
26952695
<para>
26962696
The defined collation of the column, or zero if the column is
2697-
not of a collatable data type.
2697+
not of a collatable data type
26982698
</para></entry>
26992699
</row>
27002700
____________________________________________________________________________-->
@@ -4966,7 +4966,7 @@ ____________________________________________________________________________-->
49664966
(references <link linkend="catalog-pg-type"><structname>pg_type</structname></link>.<structfield>oid</structfield>)
49674967
</para>
49684968
<para>
4969-
The domain this constraint is on; 0 if not a domain constraint
4969+
The domain this constraint is on; zero if not a domain constraint
49704970
</para></entry>
49714971
</row>
49724972
____________________________________________________________________________-->
@@ -10142,7 +10142,7 @@ ____________________________________________________________________________-->
1014210142
(references <link linkend="catalog-pg-operator"><structname>pg_operator</structname></link>.<structfield>oid</structfield>)
1014310143
</para>
1014410144
<para>
10145-
Negator of this operator, (zero if none)
10145+
Negator of this operator (zero if none)
1014610146
</para></entry>
1014710147
</row>
1014810148
____________________________________________________________________________-->
@@ -11439,7 +11439,7 @@ ____________________________________________________________________________-->
1143911439
<structfield>proargmodes</structfield> <type>char[]</type>
1144011440
</para>
1144111441
<para>
11442-
An array of the data types of the function arguments. This include
11442+
An array of the modes of the function arguments, encoded as
1144311443
<literal>i</literal> for <literal>IN</literal> arguments,
1144411444
<literal>o</literal> for <literal>OUT</literal> arguments,
1144511445
<literal>b</literal> for <literal>INOUT</literal> arguments,
@@ -14257,7 +14257,6 @@ ____________________________________________________________________________-->
1425714257
<literal>m</literal> for most common values (MCV) list statistics, and
1425814258
<literal>e</literal> for expression statistics
1425914259
</para></entry>
14260-
</para></entry>
1426114260
</row>
1426214261
____________________________________________________________________________-->
1426314262
<row>
@@ -14663,7 +14662,7 @@ ____________________________________________________________________________-->
1466314662
<structfield>subenabled</structfield> <type>bool</type>
1466414663
</para>
1466514664
<para>
14666-
If true, the subscription is enabled and should be replicating.
14665+
If true, the subscription is enabled and should be replicating
1466714666
</para></entry>
1466814667
</row>
1466914668
____________________________________________________________________________-->
@@ -25021,7 +25020,7 @@ ____________________________________________________________________________-->
2502125020
(references <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.<structfield>rolname</structfield>)
2502225021
</para>
2502325022
<para>
25024-
Owner of the extended statistics
25023+
Owner of the extended statistics object
2502525024
</para></entry>
2502625025
</row>
2502725026
____________________________________________________________________________-->
@@ -25284,7 +25283,7 @@ ____________________________________________________________________________-->
2528425283
</para>
2528525284
____________________________________________________________________________-->
2528625285
<para>
25287-
<structname>pg_stats_ext_exprs</structname>也被设计为以比底层目录更方便阅读的格式来展现信息 &mdash相应的代价是当 <structname>pg_statistic_ext</structname>中的统计信息的结构发生改变时,必须扩展其模式。
25286+
<structname>pg_stats_ext_exprs</structname>也被设计为以比底层目录更方便阅读的格式来展现信息 &mdash; 相应的代价是当 <structname>pg_statistic_ext</structname>中的统计信息的结构发生改变时,必须扩展其模式。
2528825287
</para>
2528925288

2529025289
<table>
@@ -25595,7 +25594,7 @@ ____________________________________________________________________________-->
2559525594
<para>
2559625595
表达式的值的物理行排序和逻辑排序之间的统计相关性。这个范围从-1 到 +1。
2559725596
当该值接近-1或+1时,对表达式的索引扫描预计要比接近零的时候更便宜,因为减少了对磁盘的随机访问。
25598-
(如果表达式的数据类型没有<literal>&lt;</literal><操作符,则该表达式为空。)
25597+
(如果表达式的数据类型没有<literal>&lt;</literal>操作符,则该表达式为空。)
2559925598
</para></entry>
2560025599
</row>
2560125600

postgresql/doc/src/sgml/client-auth.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceabl
692692
format. To see the <literal>DN</literal> of a client certificate
693693
in this format, do
694694
<programlisting>
695-
openssl x509 -in myclient.crt -noout --subject -nameopt RFC2253 | sed "s/^subject=//"
695+
openssl x509 -in myclient.crt -noout -&minus;subject -nameopt RFC2253 | sed "s/^subject=//"
696696
</programlisting>
697697
Care needs to be taken when using this option, especially when using
698698
regular expression matching against the <literal>DN</literal>.
@@ -1706,7 +1706,7 @@ ____________________________________________________________________________-->
17061706
</listitem>
17071707
<listitem>
17081708
<para>
1709-
<link linkend="auth-cert">Certificate authentication</link>, 需要SLL连接和通过SSL证书检查的认证用户
1709+
<link linkend="auth-cert">Certificate authentication</link>, 需要SSL连接和通过SSL证书检查的认证用户
17101710
</para>
17111711
</listitem>
17121712
<listitem>

postgresql/doc/src/sgml/config.sgml

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ ____________________________________________________________________________-->
18851885
<filename>FILE:/usr/local/pgsql/etc/krb5.keytab</filename>
18861886
(where the directory part is whatever was specified
18871887
as <varname>sysconfdir</varname> at build time; use
1888-
<literal>pg_config --sysconfdir</literal> to determine that).
1888+
<literal>pg_config -&minus;sysconfdir</literal> to determine that).
18891889
If this parameter is set to an empty string, it is ignored and a
18901890
system-dependent default is used.
18911891
This parameter can only be set in the
@@ -2583,6 +2583,16 @@ ____________________________________________________________________________-->
25832583
有效的版本为 <xref linkend="guc-ssl-min-protocol-version"/>, 添加一个空字符串,允许任何协议版本。
25842584
默认为允许任何版本。设置最大协议版本主要用于测试,或者某个组件在与较新的协议配合工作时出现了问题。
25852585
</para>
2586+
2587+
<!--==========================orignal english content==========================
2588+
<para>
2589+
This parameter can only be set in the <filename>postgresql.conf</filename>
2590+
file or on the server command line.
2591+
</para>
2592+
____________________________________________________________________________-->
2593+
<para>
2594+
此参数只能在<filename>postgresql.conf</filename>文件或服务器命令行中设置。
2595+
</para>
25862596
</listitem>
25872597
</varlistentry>
25882598

@@ -4267,7 +4277,7 @@ ____________________________________________________________________________-->
42674277
<!--==========================orignal english content==========================
42684278
<para>
42694279
When running a standby server, you must set this parameter to the
4270-
same or higher value than on the master server. Otherwise, queries
4280+
same or higher value than on the primary server. Otherwise, queries
42714281
will not be allowed in the standby server.
42724282
</para>
42734283
____________________________________________________________________________-->
@@ -14321,6 +14331,43 @@ ____________________________________________________________________________-->
1432114331
</listitem>
1432214332
</varlistentry>
1432314333

14334+
<varlistentry id="guc-transaction-isolation" xreflabel="transaction_isolation">
14335+
<!--==========================orignal english content==========================
14336+
<term><varname>transaction_isolation</varname> (<type>enum</type>)
14337+
<indexterm>
14338+
<primary>transaction isolation level</primary>
14339+
</indexterm>
14340+
<indexterm>
14341+
<primary><varname>transaction_isolation</varname> configuration parameter</primary>
14342+
</indexterm>
14343+
</term>
14344+
____________________________________________________________________________-->
14345+
<term><varname>transaction_isolation</varname> (<type>enum</type>)
14346+
<indexterm>
14347+
<primary>transaction isolation level</primary>
14348+
</indexterm>
14349+
<indexterm>
14350+
<primary><varname>transaction_isolation</varname>配置参数</primary>
14351+
</indexterm>
14352+
</term>
14353+
<listitem>
14354+
<!--==========================orignal english content==========================
14355+
<para>
14356+
This parameter reflects the current transaction's isolation level.
14357+
At the beginning of each transaction, it is set to the current value
14358+
of <xref linkend="guc-default-transaction-isolation"/>.
14359+
Any subsequent attempt to change it is equivalent to a <xref
14360+
linkend="sql-set-transaction"/> command.
14361+
</para>
14362+
____________________________________________________________________________-->
14363+
<para>
14364+
此参数反映当前事务的隔离级别。在每个事务开始时,它被设置为
14365+
<xref linkend="guc-default-transaction-isolation"/>的当前值。
14366+
任何后续更改它的尝试都相当于<xref linkend="sql-set-transaction"/>命令。
14367+
</para>
14368+
</listitem>
14369+
</varlistentry>
14370+
1432414371
<varlistentry id="guc-transaction-read-only" xreflabel="transaction_read_only">
1432514372
<!--==========================orignal english content==========================
1432614373
<term><varname>transaction_read_only</varname> (<type>boolean</type>)

postgresql/doc/src/sgml/cube.sgml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,6 @@ ____________________________________________________________________________-->
439439
</tgroup>
440440
</table>
441441

442-
<!--==========================orignal english content==========================
443-
<para>
444-
(Before PostgreSQL 8.2, the containment operators <literal>@&gt;</literal> and <literal>&lt;@</literal> were
445-
respectively called <literal>@</literal> and <literal>~</literal>. These names are still available, but are
446-
deprecated and will eventually be retired. Notice that the old names
447-
are reversed from the convention formerly followed by the core geometric
448-
data types!)
449-
</para>
450-
____________________________________________________________________________-->
451-
<para>
452-
(在 PostgreSQL 8.2 之前,包含操作符<literal>@&gt;</literal>和<literal>&lt;@</literal>分别被称为<literal>@</literal>和<literal>~</literal>。这些名称仍然可用,但是已经被废弃并且最终将会退休。注意旧的名字与之前核心几何数据类型遵循的习惯相反!)
453-
</para>
454-
455442
<!--==========================orignal english content==========================
456443
<para>
457444
In addition to the above operators, the usual comparison
@@ -613,7 +600,7 @@ ____________________________________________________________________________-->
613600
Makes a one dimensional cube.
614601
</para>
615602
<para>
616-
<literal>cube(1,2)</literal>
603+
<literal>cube(1, 2)</literal>
617604
<returnvalue>(1),(2)</returnvalue>
618605
</para></entry>
619606
</row>

0 commit comments

Comments
 (0)