Skip to content

Commit f1682f7

Browse files
authored
Merge pull request #443 from TsinghuaLucky912/master
restored some translations; fixed some errors
2 parents cd1fa04 + 5856bd4 commit f1682f7

File tree

10 files changed

+149
-150
lines changed

10 files changed

+149
-150
lines changed

postgresql/doc/src/sgml/generic-wal.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ ________________________________________________________-->
4444
</para>
4545
________________________________________________________-->
4646
<para>
47-
通用WAL记录在逻辑解码期间被忽略。<link
48-
linkend="logicaldecoding">逻辑解码</link>。如果您的扩展需要逻辑解码,
47+
通用WAL记录在<link linkend="logicaldecoding">逻辑解码</link>期间被忽略。如果您的扩展需要逻辑解码,
4948
考虑使用自定义WAL资源管理器。
5049
</para>
5150
<!-- pgdoc-cn_end sig_en=dc58364d1580ddc7b9df6a63ebe3c2c4 -->

postgresql/doc/src/sgml/libpq.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2985,7 +2985,7 @@ ________________________________________________________-->
29852985
</para>
29862986
________________________________________________________-->
29872987
<para>
2988-
指定此参数为任何非空值将抑制<literal>输入PEM密码短语:</literal>
2988+
指定此参数为任何非空值将抑制<literal>Enter PEM pass phrase:</literal>
29892989
当提供加密的客户端证书密钥给<literal>libpq</literal>时,
29902990
<productname>OpenSSL</productname>默认会发出的提示。
29912991
</para>
@@ -3111,7 +3111,7 @@ ________________________________________________________-->
31113111
<!-- pgdoc-cn_start sig_en=a24a9c545a1c05a1c93a80f06d769828 sig_cn_org=d346872808aa9d5a3cbfc3cbfcca2dcc source=15.7
31123112
<term><literal>sslsni</literal><indexterm><primary>Server Name Indication</primary></indexterm></term>
31133113
________________________________________________________-->
3114-
<term><literal>sslsni</literal><indexterm><primary>服务器名称指示</primary></indexterm></term>
3114+
<term><literal>sslsni</literal><indexterm><primary>Server Name Indication</primary></indexterm></term>
31153115
<!-- pgdoc-cn_end sig_en=a24a9c545a1c05a1c93a80f06d769828 -->
31163116
<listitem>
31173117
<!-- pgdoc-cn_start sig_en=150fa97f5e54b53458e5d285f7be8361 sig_cn_org=c5c45519363a379a6e40e19b72d0296c source=15.7
@@ -3122,7 +3122,7 @@ ________________________________________________________-->
31223122
</para>
31233123
________________________________________________________-->
31243124
<para>
3125-
如果设置为1(默认值),libpq会在启用SSL的连接上设置TLS扩展<quote>服务器名称指示</quote>(<acronym>SNI</acronym>)。
3125+
如果设置为1(默认值),libpq会在启用SSL的连接上设置TLS扩展<quote>Server Name Indication</quote>(<acronym>SNI</acronym>)。
31263126
通过将此参数设置为0,可以关闭此功能。
31273127
</para>
31283128
<!-- pgdoc-cn_end sig_en=150fa97f5e54b53458e5d285f7be8361 -->

postgresql/doc/src/sgml/logical-replication.sgml

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

postgresql/doc/src/sgml/ref/merge.sgml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PostgreSQL documentation
1010
</indexterm>
1111
________________________________________________________-->
1212
<indexterm zone="sql-merge">
13-
<primary>合并</primary>
13+
<primary>MERGE</primary>
1414
</indexterm>
1515
<!-- pgdoc-cn_end sig_en=b302792a0c11f5df3eac6de40aede7c7 -->
1616

@@ -27,7 +27,7 @@ ________________________________________________________-->
2727
</refnamediv>
2828
________________________________________________________-->
2929
<refnamediv>
30-
<refname>合并</refname>
30+
<refname>MERGE</refname>
3131
<refpurpose>有条件地插入、更新或删除表中的行</refpurpose>
3232
</refnamediv>
3333
<!-- pgdoc-cn_end sig_en=8650c9505c33d8a3aa14aab799d6b6a1 -->
@@ -124,7 +124,7 @@ ________________________________________________________-->
124124
<command>MERGE</command>执行修改目标表中被标识为<replaceable class="parameter">target_table_name</replaceable>的行的操作,
125125
使用<replaceable class="parameter">data_source</replaceable>。
126126
<command>MERGE</command>提供了一个单一的<acronym>SQL</acronym>语句,可以有条件地<command>INSERT</command>、
127-
<command>UPDATE</command>或<command>DELETE</command>行,这是一个否则需要多个过程语言语句的任务
127+
<command>UPDATE</command>或<command>DELETE</command>行,这是一项原本需要多个过程语言语句的任务
128128
</para>
129129
<!-- pgdoc-cn_end sig_en=4c8edecd4772b3b25dbf0e373dec9f38 -->
130130

@@ -161,7 +161,7 @@ ________________________________________________________-->
161161
</para>
162162
________________________________________________________-->
163163
<para>
164-
<command>合并</command> 操作与常规的 <command>更新</command>、<command>插入</command> 或 <command>删除</command> 命令具有相同的效果。
164+
<command>MERGE</command> 操作与常规的 <command>UPDATE</command>、<command>INSERT</command> 或 <command>DELETE</command> 命令具有相同的效果。
165165
这些命令的语法不同,特别是没有 <literal>WHERE</literal> 子句,也没有指定表名。
166166
所有操作都是针对目标表的,尽管可以使用触发器对其他表进行修改。
167167
</para>
@@ -226,7 +226,7 @@ ________________________________________________________-->
226226
________________________________________________________-->
227227
<para>
228228
<command>MERGE</command>不支持如果目标表是一个
229-
材料化视图、外部表,或者如果它有任何
229+
物化视图、外部表,或者如果它有任何
230230
在其上定义的规则。
231231
</para>
232232
<!-- pgdoc-cn_end sig_en=a44778cdeecf2599841306dcdd1ba3b5 -->
@@ -437,7 +437,7 @@ ________________________________________________________-->
437437
<para>
438438
如果<literal>WHEN</literal>子句指定为<literal>WHEN MATCHED</literal>,
439439
并且候选更改行匹配目标表中的一行,
440-
如果<replaceable class="parameter">条件</replaceable>不存在或评估为<literal>true</literal>,
440+
如果<replaceable class="parameter">condition</replaceable>不存在或评估为<literal>true</literal>,
441441
则执行<literal>WHEN</literal>子句。
442442
</para>
443443
<!-- pgdoc-cn_end sig_en=8d7c0b1e0c370d0b87286230f22eefb8 -->
@@ -455,7 +455,7 @@ ________________________________________________________-->
455455
<para>
456456
相反,如果<literal>WHEN</literal>子句指定<literal>WHEN NOT MATCHED</literal>,
457457
并且候选更改行与目标表中的行不匹配,
458-
则如果<replaceable class="parameter">条件</replaceable>不存在或评估为<literal>true</literal>,
458+
则如果<replaceable class="parameter">condition</replaceable>不存在或评估为<literal>true</literal>,
459459
则执行<literal>WHEN</literal>子句。
460460
</para>
461461
<!-- pgdoc-cn_end sig_en=7d75aea33ac186f4406512660cda007f -->
@@ -1057,13 +1057,14 @@ ________________________________________________________-->
10571057
对<literal>customer_accounts</literal>进行基于新<literal>recent_transactions</literal>的维护。
10581058

10591059
<programlisting>
1060-
将customer_account表与recent_transactions表进行合并
1061-
根据t.customer_id = ca.customer_id
1062-
当匹配时
1063-
更新SET balance = balance + transaction_value
1064-
当不匹配时
1065-
插入(customer_id, balance)
1066-
值为(t.customer_id, t.transaction_value);
1060+
MERGE INTO customer_account ca
1061+
USING recent_transactions t
1062+
ON t.customer_id = ca.customer_id
1063+
WHEN MATCHED THEN
1064+
UPDATE SET balance = balance + transaction_value
1065+
WHEN NOT MATCHED THEN
1066+
INSERT (customer_id, balance)
1067+
VALUES (t.customer_id, t.transaction_value);
10671068
</programlisting>
10681069
</para>
10691070
<!-- pgdoc-cn_end sig_en=1e64e5c1a0c8648b896b8f4edfd60afd -->
@@ -1090,14 +1091,14 @@ ________________________________________________________-->
10901091
注意,这与以下语句完全等效,因为<literal>MATCHED</literal>结果在执行过程中不会改变。
10911092

10921093
<programlisting>
1093-
将customer_account ca合并
1094-
使用(SELECT customer_id, transaction_value FROM recent_transactions) AS t
1094+
MERGE INTO customer_account ca
1095+
USING (SELECT customer_id, transaction_value FROM recent_transactions) AS t
10951096
ON t.customer_id = ca.customer_id
1096-
当匹配时
1097-
更新 SET balance = balance + transaction_value
1098-
当不匹配时
1099-
插入 (customer_id, balance)
1100-
(t.customer_id, t.transaction_value);
1097+
WHEN MATCHED THEN
1098+
UPDATE SET balance = balance + transaction_value
1099+
WHEN NOT MATCHED THEN
1100+
INSERT (customer_id, balance)
1101+
VALUES (t.customer_id, t.transaction_value);
11011102
</programlisting>
11021103
</para>
11031104
<!-- pgdoc-cn_end sig_en=a98e34cd6c7149059ddd38be0d38f8ed -->

postgresql/doc/src/sgml/ref/pg_amcheck.sgml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ ________________________________________________________-->
163163
________________________________________________________-->
164164
<para>
165165
检查与指定的
166-
<link linkend="app-psql-patterns"><replaceable class="parameter">模式</replaceable></link>
166+
<link linkend="app-psql-patterns"><replaceable class="parameter">pattern</replaceable></link>
167167
匹配的数据库,除了被<option>--exclude-database</option>排除的任何数据库。
168168
可以多次指定此选项。
169169
</para>
@@ -183,9 +183,8 @@ ________________________________________________________-->
183183
</para>
184184
________________________________________________________-->
185185
<para>
186-
排除与给定的<replaceable class="parameter">模式</replaceable>
187-
匹配的数据库
188-
<link linkend="app-psql-patterns">链接</link>。
186+
排除与给定的<link linkend="app-psql-patterns"><replaceable class="parameter">pattern</replaceable></link>
187+
匹配的数据库。
189188
可以多次指定此选项。
190189
</para>
191190
<!-- pgdoc-cn_end sig_en=f2f783c31fe916f1ae0ec7d2a96a0d29 -->
@@ -206,7 +205,7 @@ ________________________________________________________-->
206205
________________________________________________________-->
207206
<para>
208207
检查与指定的
209-
<link linkend="app-psql-patterns"><replaceable class="parameter">模式</replaceable></link>
208+
<link linkend="app-psql-patterns"><replaceable class="parameter">pattern</replaceable></link>
210209
匹配的索引,除非它们被排除在外。
211210
可以多次指定此选项。
212211
</para>
@@ -236,7 +235,7 @@ ________________________________________________________-->
236235
</para>
237236
________________________________________________________-->
238237
<para>
239-
排除与指定的<link linkend="app-psql-patterns"><replaceable class="parameter">模式</replaceable></link>匹配的索引。
238+
排除与指定的<link linkend="app-psql-patterns"><replaceable class="parameter">pattern</replaceable></link>匹配的索引。
240239
可以多次指定此选项。
241240
</para>
242241
<!-- pgdoc-cn_end sig_en=981cc5a106f55be24fdcc19629acc4c3 -->
@@ -267,7 +266,7 @@ ________________________________________________________-->
267266
________________________________________________________-->
268267
<para>
269268
检查与指定的
270-
<link linkend="app-psql-patterns"><replaceable class="parameter">模式</replaceable></link>
269+
<link linkend="app-psql-patterns"><replaceable class="parameter">pattern</replaceable></link>
271270
匹配的关系,除非它们被排除在外。
272271
可以多次指定此选项。
273272
</para>
@@ -301,7 +300,7 @@ ________________________________________________________-->
301300
</para>
302301
________________________________________________________-->
303302
<para>
304-
排除与指定的<link linkend="app-psql-patterns"><replaceable class="parameter">模式</replaceable></link>匹配的关系。
303+
排除与指定的<link linkend="app-psql-patterns"><replaceable class="parameter">pattern</replaceable></link>匹配的关系。
305304
可以多次指定此选项。
306305
</para>
307306
<!-- pgdoc-cn_end sig_en=b51bd5c50861c31bad56d4fec5516d27 -->
@@ -332,7 +331,7 @@ ________________________________________________________-->
332331
</para>
333332
________________________________________________________-->
334333
<para>
335-
检查与指定的<link linkend="app-psql-patterns"><replaceable class="parameter">模式</replaceable></link>匹配的模式中的表和索引,除非它们被排除在外。
334+
检查与指定的<link linkend="app-psql-patterns"><replaceable class="parameter">pattern</replaceable></link>匹配的模式中的表和索引,除非它们被排除在外。
336335
可以多次指定此选项。
337336
</para>
338337
<!-- pgdoc-cn_end sig_en=e9b279b47f43f0a2f20b6c7d33d1eb0c -->
@@ -381,7 +380,7 @@ ________________________________________________________-->
381380
________________________________________________________-->
382381
<para>
383382
排除与指定的
384-
<link linkend="app-psql-patterns"><replaceable class="parameter">模式</replaceable></link>
383+
<link linkend="app-psql-patterns"><replaceable class="parameter">pattern</replaceable></link>
385384
匹配的模式和索引。此选项可以指定多次。
386385
</para>
387386
<!-- pgdoc-cn_end sig_en=0bbdf2e59739573400e0a71551a83f96 -->
@@ -443,7 +442,7 @@ ________________________________________________________-->
443442
________________________________________________________-->
444443
<para>
445444
排除与指定的
446-
<link linkend="app-psql-patterns"><replaceable class="parameter">模式</replaceable></link>
445+
<link linkend="app-psql-patterns"><replaceable class="parameter">pattern</replaceable></link>
447446
匹配的表。此选项可以指定多次。
448447
</para>
449448
<!-- pgdoc-cn_end sig_en=7b7d8f60f2126eb179b495b859b3510f -->

postgresql/doc/src/sgml/ref/pg_basebackup.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ ________________________________________________________-->
857857
</para>
858858
________________________________________________________-->
859859
<para>
860-
设置备份的标签。如果未指定任何标签,则将使用默认值<quote><literal>pg_basebackup基本备份</literal></quote>。
860+
设置备份的标签。如果未指定任何标签,则将使用默认值<quote><literal>pg_basebackup base backup</literal></quote>。
861861
</para>
862862
<!-- pgdoc-cn_end sig_en=17915fe9ff3ac5ec7fb601dc96af45eb -->
863863
</listitem>

postgresql/doc/src/sgml/ref/pg_ctl-ref.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ ________________________________________________________-->
239239
________________________________________________________-->
240240
<para>
241241
<option>stop</option>模式会关闭在指定数据目录中运行的服务器。可以使用<option>-m</option>选项选择三种不同的关闭方法。
242-
<quote>智能</quote>模式禁止新连接,然后等待所有现有客户端断开连接。
242+
<quote>Smart</quote>模式禁止新连接,然后等待所有现有客户端断开连接。
243243
如果服务器处于热备状态,一旦所有客户端断开连接,恢复和流复制将终止。
244-
<quote>快速</quote>模式(默认)不等待客户端断开连接。
244+
<quote>Fast</quote>模式(默认)不等待客户端断开连接。
245245
所有活动事务都将回滚,客户端将被强制断开连接,然后服务器将关闭。
246-
<quote>立即</quote>模式将立即中止所有服务器进程,而不是进行干净的关闭。这个选择将导致在下次服务器启动时进行崩溃恢复循环。
246+
<quote>Immediate</quote>模式将立即中止所有服务器进程,而不是进行干净的关闭。这个选择将导致在下次服务器启动时进行崩溃恢复循环。
247247
</para>
248248
<!-- pgdoc-cn_end sig_en=9525db55bf435be90254ab5bead9ca11 -->
249249

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ ________________________________________________________-->
613613
</para>
614614
________________________________________________________-->
615615
<para>
616-
不要在转储开始时永远等待获取共享表锁。相反,如果在指定的<replaceable class="parameter">超时</replaceable>内无法锁定表,则失败。
616+
不要在转储开始时永远等待获取共享表锁。相反,如果在指定的<replaceable class="parameter">timeout</replaceable>内无法锁定表,则失败。
617617
超时可以以<command>SET statement_timeout</command>接受的任何格式指定。
618618
</para>
619619
<!-- pgdoc-cn_end sig_en=f8237e9fb8e30514c9108bb68a8676b3 -->
@@ -644,7 +644,7 @@ ________________________________________________________-->
644644
</para>
645645
________________________________________________________-->
646646
<para>
647-
不要倾倒出版物
647+
不要转储publication
648648
</para>
649649
<!-- pgdoc-cn_end sig_en=e3beeac18caec38f8802d2bf9e9e3b33 -->
650650
</listitem>
@@ -699,7 +699,7 @@ ________________________________________________________-->
699699
</para>
700700
________________________________________________________-->
701701
<para>
702-
不要删除订阅
702+
不要转储订阅
703703
</para>
704704
<!-- pgdoc-cn_end sig_en=9081e04bdf2696c648f265a07ee7896c -->
705705
</listitem>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ ________________________________________________________-->
156156
</para>
157157
________________________________________________________-->
158158
<para>
159-
写前日志流式传输的起始点是在<application>pg_receivewal</application>启动时计算的:
159+
预写式日志流式传输的起始点是在<application>pg_receivewal</application>启动时计算的:
160160
<orderedlist>
161161
<listitem>
162162
<para>
@@ -167,7 +167,7 @@ ________________________________________________________-->
167167
<listitem>
168168
<para>
169169
如果无法用上述方法计算起始点,并且使用了复制插槽,则会发出额外的<command>READ_REPLICATION_SLOT</command>命令来检索插槽的<literal>restart_lsn</literal>,以用作起始点。
170-
仅当从<productname>PostgreSQL</productname> 15及更高版本流式传输写前日志时才可用此选项
170+
仅当从<productname>PostgreSQL</productname> 15及更高版本流式传输预写式日志时才可用此选项
171171
</para>
172172
</listitem>
173173

@@ -879,7 +879,7 @@ ________________________________________________________-->
879879
当使用<application>pg_receivewal</application>而不是
880880
<xref linkend="guc-archive-command"/>或
881881
<xref linkend="guc-archive-library"/>作为主要的WAL备份方法时,
882-
强烈建议使用复制槽。否则,服务器可能会在备份之前回收或删除写前日志文件
882+
强烈建议使用复制槽。否则,服务器可能会在备份之前回收或删除预写式日志文件
883883
因为它没有任何关于WAL流已归档到哪里的信息,
884884
无论是来自<xref linkend="guc-archive-command"/>或
885885
<xref linkend="guc-archive-library"/>还是复制槽。但是,请注意,

0 commit comments

Comments
 (0)