Skip to content

Commit d88c0b3

Browse files
authored
Merge pull request #250 from Steve888888/master
plhander.sgml增加11.2原文变更
2 parents 80899b9 + c53dfeb commit d88c0b3

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

postgresql/doc/src/sgml/btree-gin.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ____________________________________________________________________________-->
4040
<type>varchar</type>、<type>text</type>、<type>bytea</type>、<type>bit</type>、
4141
<type>varbit</type>、<type>macaddr</type>、<type>macaddr8</type>、<type>inet</type>、
4242
<type>cidr</type>、<type>uuid</type>、<type>name</type>、<type>bool</type>、
43-
<type>bpchar</type>和所有<type>enum</type>类型实现 B 树等价行为的 GIN 操作符类例子
43+
<type>bpchar</type>和所有<type>enum</type>类型实现B树等价行为的GIN操作符类例子
4444
</para>
4545

4646
<!--==========================orignal english content==========================
@@ -56,7 +56,7 @@ ____________________________________________________________________________-->
5656
</para>
5757
____________________________________________________________________________-->
5858
<para>
59-
通常,这些操作符类不会比等效的标准 B 树索引方法更好,并且它们缺少标准 B 树代码的一个主要特性:强制一致性的能力。但是,它们有助于 GIN 测试并且有助于作为开发其他 GIN 操作符类的基础。另外,对于测试一个 GIN 可索引的列和一个 B 树可索引的列的查询,创建一个使用这些操作符类之一的多列 GIN 索引要比创建必须通过位图 AND 组合在一起的两个独立索引要更有效
59+
通常,这些操作符类不会比等效的标准B树索引方法更好,并且它们缺少标准B树代码的一个主要特性:强制一致性的能力。但是,它们有助于GIN测试并且有助于作为开发其他GIN操作符类的基础。另外,对于测试一个GIN可索引的列和一个B树可索引的列的查询,创建一个使用这些操作符类之一的多列GIN索引要比创建必须通过位图AND组合在一起的两个独立索引要更有效
6060
</para>
6161

6262
<sect2>

postgresql/doc/src/sgml/plhandler.sgml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,16 @@ ____________________________________________________________________________-->
2121
<para>
2222
All calls to functions that are written in a language other than
2323
the current <quote>version 1</quote> interface for compiled
24-
languages (this includes functions in user-defined procedural languages,
25-
functions written in SQL, and functions using the version 0 compiled
26-
language interface) go through a <firstterm>call handler</firstterm>
24+
languages (this includes functions in user-defined procedural languages
25+
and functions written in SQL) go through a <firstterm>call handler</firstterm>
2726
function for the specific language. It is the responsibility of
2827
the call handler to execute the function in a meaningful way, such
2928
as by interpreting the supplied source text. This chapter outlines
3029
how a new procedural language's call handler can be written.
3130
</para>
3231
____________________________________________________________________________-->
3332
<para>
34-
所有对用不是当前<quote>版本 1</quote>接口(用于编译型语言)语言编写的函数(这包括用户定义的过程语言中的函数、SQL 编写的函数以及使用版本 0 编译型语言接口的函数)的调用都会流经一个用于指定语言的<firstterm>调用处理器</firstterm>。调用处理器负责以一种有意义的方式执行该函数,例如通过解释所提供的源文本。本章勾勒了如何编写一个新的过程语言调用处理器的轮廓。
33+
所有对用不是当前<quote>版本 1</quote>接口(用于编译型语言)语言编写的函数(这包括用户定义的过程语言中的函数、SQL 编写的函数)的调用都会流经一个用于指定语言的<firstterm>调用处理器</firstterm>。调用处理器负责以一种有意义的方式执行该函数,例如通过解释所提供的源文本。本章勾勒了如何编写一个新的过程语言调用处理器的轮廓。
3534
</para>
3635

3736
<!--==========================orignal english content==========================
@@ -148,9 +147,7 @@ ____________________________________________________________________________-->
148147
#include "catalog/pg_proc.h"
149148
#include "catalog/pg_type.h"
150149

151-
#ifdef PG_MODULE_MAGIC
152150
PG_MODULE_MAGIC;
153-
#endif
154151

155152
PG_FUNCTION_INFO_V1(plsample_call_handler);
156153

@@ -162,7 +159,7 @@ plsample_call_handler(PG_FUNCTION_ARGS)
162159
if (CALLED_AS_TRIGGER(fcinfo))
163160
{
164161
/*
165-
* Called as a trigger procedure
162+
* Called as a trigger function
166163
*/
167164
TriggerData *trigdata = (TriggerData *) fcinfo-&gt;context;
168165

@@ -196,9 +193,7 @@ ____________________________________________________________________________-->
196193
#include "catalog/pg_proc.h"
197194
#include "catalog/pg_type.h"
198195

199-
#ifdef PG_MODULE_MAGIC
200196
PG_MODULE_MAGIC;
201-
#endif
202197

203198
PG_FUNCTION_INFO_V1(plsample_call_handler);
204199

@@ -210,7 +205,7 @@ plsample_call_handler(PG_FUNCTION_ARGS)
210205
if (CALLED_AS_TRIGGER(fcinfo))
211206
{
212207
/*
213-
* Called as a trigger procedure
208+
* Called as a trigger function
214209
*/
215210
TriggerData *trigdata = (TriggerData *) fcinfo-&gt;context;
216211

0 commit comments

Comments
 (0)