Skip to content

Commit a68f729

Browse files
committed
纠正编译错误
1 parent 5f176d2 commit a68f729

File tree

3 files changed

+15
-73
lines changed

3 files changed

+15
-73
lines changed

postgresql/doc/src/sgml/perform.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,7 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
20392039
更重要的是,当你将数据加载到已有外键约束的表中的时候,
20402040
每个新行需要一个服务器上的待处理触发器事件列表中的项目(因为正是触发器的触发在进行行的外键约束检查)。
20412041
加载数以百万计的行可能引起触发器事件队列超出可用内存,导致无法忍受的页交换,
2042-
甚至命令的彻底失败。因此,当加载大量数据的时候,删除并且重新申请外键约束可能是<emphasis>必需的/>,而不只是理想的。如果临时删除约束是不能接受的,
2042+
甚至命令的彻底失败。因此,当加载大量数据的时候,删除并且重新申请外键约束可能是<emphasis>必需的</>,而不只是理想的。如果临时删除约束是不能接受的,
20432043
唯一可以求助的可能是将加载操作分散到多个更小的事务中。
20442044
</para>
20452045
</sect2>

postgresql/doc/src/sgml/sourcerepo.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<!--
5555
<title>Getting The Source via <productname>Git</></title>
5656
-->
57-
<title>通过<productname>Git</></title>获得源代码
57+
<title>通过<productname>Git</>获得源代码</title>
5858

5959
<!--
6060
<para>

postgresql/doc/src/sgml/test-parser.sgml

Lines changed: 13 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,16 @@
1414
a starting point for developing your own parser.
1515
</para>
1616
-->
17-
18-
<para>
19-
<filename>dblink</>是一个在数据库会话中支持连接其他<productname>PostgreSQL</>
20-
数据库的模块。
21-
</para>
22-
23-
2417
<para>
2518
<filename>test_parser</> 是一个自定义的全文搜索解析器的例子。它不做特别有用的工作,但是可以作为开发一个自己的解析器的起点。
2619
</para>
2720

28-
<!--
2921
<para>
22+
<!--
3023
<filename>test_parser</> recognizes words separated by white space,
3124
and returns just two token types:
25+
-->
26+
<filename>test_parser</> 识别以空格分隔的单词,并且返回两种标记类型:
3227

3328
<programlisting>
3429
mydb=# SELECT * FROM ts_token_type('testparser');
@@ -39,25 +34,13 @@ mydb=# SELECT * FROM ts_token_type('testparser');
3934
(2 rows)
4035
</programlisting>
4136

37+
<!--
4238
These token numbers have been chosen to be compatible with the default
4339
parser's numbering. This allows us to use its <function>headline()</>
4440
function, thus keeping the example simple.
4541
</para>
4642
-->
47-
48-
<para>
49-
<filename>test_parser</> 识别以空格分隔的单词,并且返回两种令牌类型:
50-
51-
<programlisting>
52-
mydb=# SELECT * FROM ts_token_type('testparser');
53-
tokid | alias | description
54-
-------+-------+---------------
55-
3 | word | Word
56-
12 | blank | Space symbols
57-
(2 rows)
58-
</programlisting>
59-
60-
这些令牌数字被选择来兼容默认的解析器编号。这让我们可以使用<function>headline()</>函数,从而保持例子的简单。
43+
这些标记数字被选择来兼容默认的解析器编号。这让我们可以使用<function>headline()</>函数,从而保持例子的简单。
6144
</para>
6245

6346
<!--
@@ -79,30 +62,12 @@ mydb=# SELECT * FROM ts_token_type('testparser');
7962

8063
</para>
8164

82-
<!--
83-
<para>
84-
You can test the parser with, for example,
8565

86-
<programlisting>
87-
mydb=# SELECT * FROM ts_parse('testparser', 'That''s my first own parser');
88-
tokid | token
89-
-------+--------
90-
3 | That's
91-
12 |
92-
3 | my
93-
12 |
94-
3 | first
95-
12 |
96-
3 | own
97-
12 |
98-
3 | parser
99-
</programlisting>
100-
</para>
101-
-->
102-
10366
<para>
67+
<!--
68+
You can test the parser with, for example,
69+
-->
10470
你可以像下面的例子这样测试该解析器,
105-
10671

10772
<programlisting>
10873
mydb=# SELECT * FROM ts_parse('testparser', 'That''s my first own parser');
@@ -119,39 +84,15 @@ mydb=# SELECT * FROM ts_parse('testparser', 'That''s my first own parser');
11984
3 | parser
12085
</programlisting>
12186
</para>
87+
12288

123-
<!--
89+
12490
<para>
91+
<!--
12592
Real-world use requires setting up a text search configuration
12693
that uses the parser. For example,
127-
128-
<programlisting>
129-
mydb=# CREATE TEXT SEARCH CONFIGURATION testcfg ( PARSER = testparser );
130-
CREATE TEXT SEARCH CONFIGURATION
131-
132-
mydb=# ALTER TEXT SEARCH CONFIGURATION testcfg
133-
mydb-# ADD MAPPING FOR word WITH english_stem;
134-
ALTER TEXT SEARCH CONFIGURATION
135-
136-
mydb=# SELECT to_tsvector('testcfg', 'That''s my first own parser');
137-
to_tsvector
138-
-------------------------------
139-
'that':1 'first':3 'parser':5
140-
(1 row)
141-
142-
mydb=# SELECT ts_headline('testcfg', 'Supernovae stars are the brightest phenomena in galaxies',
143-
mydb(# to_tsquery('testcfg', 'star'));
144-
ts_headline
145-
-----------------------------------------------------------------
146-
Supernovae &lt;b&gt;stars&lt;/b&gt; are the brightest phenomena in galaxies
147-
(1 row)
148-
</programlisting>
149-
</para>
150-
-->
151-
152-
<para>
94+
-->
15395
实际使用需要配置一个文本搜索配置项来使用这个解析器。例如,
154-
15596

15697
<programlisting>
15798
mydb=# CREATE TEXT SEARCH CONFIGURATION testcfg ( PARSER = testparser );
@@ -176,6 +117,7 @@ mydb(# to_tsquery('testcfg', 'star'));
176117
</programlisting>
177118
</para>
178119

120+
179121
</sect2>
180122

181123
</sect1>

0 commit comments

Comments
 (0)