Skip to content

Commit caa377b

Browse files
authored
Merge pull request #327 from chegong18/master
Update five files such as catalogs.sgml and color.sgml
2 parents 8b5230c + b8437a5 commit caa377b

File tree

8 files changed

+16367
-10013
lines changed

8 files changed

+16367
-10013
lines changed

postgresql/doc/src/sgml/catalogs.sgml

Lines changed: 11677 additions & 8159 deletions
Large diffs are not rendered by default.

postgresql/doc/src/sgml/charset.sgml

Lines changed: 2426 additions & 822 deletions
Large diffs are not rendered by default.

postgresql/doc/src/sgml/citext.sgml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ ____________________________________________________________________________-->
4444
</para>
4545
</tip>
4646

47+
<!--==========================orignal english content==========================
48+
<para>
49+
This module is considered <quote>trusted</quote>, that is, it can be
50+
installed by non-superusers who have <literal>CREATE</literal> privilege
51+
on the current database.
52+
</para>
53+
____________________________________________________________________________-->
54+
<para>
55+
此模块被视为<quote>可信(trusted)</quote>,也就是说,它可以由当前数据库上具有 <literal>CREATE</literal> 权限的非超级用户来安装。
56+
</para>
57+
4758
<sect2>
4859
<!--==========================orignal english content==========================
4960
<title>Rationale</title>
@@ -391,13 +402,15 @@ ____________________________________________________________________________-->
391402
<para>
392403
<type>citext</type> is not as efficient as <type>text</type> because the
393404
operator functions and the B-tree comparison functions must make copies
394-
of the data and convert it to lower case for comparisons. It is,
395-
however, slightly more efficient than using <function>lower</function> to get
396-
case-insensitive matching.
405+
of the data and convert it to lower case for comparisons. Also, only
406+
<type>text</type> can support B-Tree deduplication. However,
407+
<type>citext</type> is slightly more efficient than using
408+
<function>lower</function> to get case-insensitive matching.
397409
</para>
398410
____________________________________________________________________________-->
399411
<para>
400-
<type>citext</type>的效率不如<type>text</type>,因为操作符函数和 B 树比较函数必须创建数据的拷贝并且将它转换为小写形式来进行比较。不过,它比使用<function>lower</function>进行大小写不敏感的匹配的效率要略高。
412+
<type>citext</type>的效率不如<type>text</type>,因为操作符函数和 B 树比较函数必须创建数据的拷贝并且将它转换为小写形式来进行比较。
413+
此外,只有<type>text</type>可以支持B树重复数据删除。不过,在进行大小写不敏感的匹配时,<type>citext</type>比使用<function>lower</function>的效率要略高。
401414
</para>
402415
</listitem>
403416

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

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,19 @@ ____________________________________________________________________________-->
159159

160160
<!--==========================orignal english content==========================
161161
<para>
162-
A record can have one of the seven formats
162+
A record can have several formats:
163163
<synopsis>
164-
local <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
165-
host <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
166-
hostssl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
167-
hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
168-
host <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
169-
hostssl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
170-
hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
171-
hostgssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
172-
hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
164+
local <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
165+
host <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
166+
hostssl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
167+
hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
168+
hostgssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
169+
hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
170+
host <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
171+
hostssl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
172+
hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
173+
hostgssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
174+
hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
173175
</synopsis>
174176
The meaning of the fields is as follows:
175177

@@ -416,8 +418,7 @@ hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable
416418
</para>
417419

418420
<para>
419-
This field only applies to <literal>host</literal>,
420-
<literal>hostssl</literal>, and <literal>hostnossl</literal> records.
421+
These fields do not apply to <literal>local</literal> records.
421422
</para>
422423

423424
<note>
@@ -469,8 +470,7 @@ hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable
469470
</para>
470471

471472
<para>
472-
These fields only apply to <literal>host</literal>,
473-
<literal>hostssl</literal>, and <literal>hostnossl</literal> records.
473+
These fields do not apply to <literal>local</literal> records.
474474
</para>
475475
</listitem>
476476
</varlistentry>
@@ -682,17 +682,19 @@ hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable
682682
</para>
683683
____________________________________________________________________________-->
684684
<para>
685-
记录可以是下面七种格式之一
685+
记录可以有多种格式
686686
<synopsis>
687-
local <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
688-
host <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
689-
hostssl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
690-
hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
691-
host <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
692-
hostssl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
693-
hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
694-
hostgssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
695-
hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
687+
local <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
688+
host <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
689+
hostssl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
690+
hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
691+
hostgssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
692+
hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>address</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
693+
host <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
694+
hostssl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
695+
hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
696+
hostgssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
697+
hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>IP-address</replaceable> <replaceable>IP-mask</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-options</replaceable></optional>
696698
</synopsis>
697699
各个域的含义如下:
698700

@@ -851,8 +853,7 @@ hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable
851853
</para>
852854

853855
<para>
854-
这个域只适用于<literal>host</literal>、
855-
<literal>hostssl</literal>和<literal>hostnossl</literal>记录。
856+
这个域不适用于<literal>local</literal>记录。
856857
</para>
857858

858859
<note>
@@ -888,7 +889,7 @@ hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceable
888889
</para>
889890

890891
<para>
891-
这些域只适用于<literal>host</literal>、<literal>hostssl</literal>和<literal>hostnossl</literal>记录。
892+
这些域不适用于<literal>local</literal>记录。
892893
</para>
893894
</listitem>
894895
</varlistentry>
@@ -3484,19 +3485,15 @@ ____________________________________________________________________________-->
34843485

34853486
<!--==========================orignal english content==========================
34863487
<para>
3487-
In a <filename>pg_hba.conf</filename> record specifying certificate
3488-
authentication, the authentication option <literal>clientcert</literal> is
3489-
assumed to be <literal>verify-ca</literal> or <literal>verify-full</literal>,
3490-
and it cannot be turned off since a client certificate is necessary for this
3491-
method. What the <literal>cert</literal> method adds to the basic
3492-
<literal>clientcert</literal> certificate validity test is a check that the
3493-
<literal>cn</literal> attribute matches the database user name.
3488+
It is redundant to use the <literal>clientcert</literal> option with
3489+
<literal>cert</literal> authentication because <literal>cert</literal>
3490+
authentication is effectively <literal>trust</literal> authentication
3491+
with <literal>clientcert=verify-full</literal>.
34943492
</para>
34953493
____________________________________________________________________________-->
34963494
<para>
3497-
在一条指定证书认证的<filename>pg_hba.conf</filename>记录中,认证选项<literal>clientcert</literal>被假定为<literal>verify-ca</literal>或<literal>verify-full</literal>,
3498-
并且它不能被关掉,因为在这种方法中客户端证书是必需的。
3499-
<literal>cert</literal>方法增加到基本<literal>clientcert</literal>证书有效性测试是一个<literal>cn</literal>属性匹配数据库用户名的检查。
3495+
将 <literal>clientcert</literal> 选项与 <literal>cert</literal>验证一起使用是多余的,
3496+
因为 <literal>cert</literal>身份验证是经过<literal>clientcert=verify-full</literal>的有效的 <literal>trust</literal> 验证。
35003497
</para>
35013498
</sect1>
35023499

0 commit comments

Comments
 (0)