@@ -21,17 +21,16 @@ ____________________________________________________________________________-->
21
21
<para>
22
22
All calls to functions that are written in a language other than
23
23
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>
27
26
function for the specific language. It is the responsibility of
28
27
the call handler to execute the function in a meaningful way, such
29
28
as by interpreting the supplied source text. This chapter outlines
30
29
how a new procedural language's call handler can be written.
31
30
</para>
32
31
____________________________________________________________________________-->
33
32
<para>
34
- 所有对用不是当前<quote>版本 1</quote>接口(用于编译型语言)语言编写的函数(这包括用户定义的过程语言中的函数、SQL 编写的函数以及使用版本 0 编译型语言接口的函数 )的调用都会流经一个用于指定语言的<firstterm>调用处理器</firstterm>。调用处理器负责以一种有意义的方式执行该函数,例如通过解释所提供的源文本。本章勾勒了如何编写一个新的过程语言调用处理器的轮廓。
33
+ 所有对用不是当前<quote>版本 1</quote>接口(用于编译型语言)语言编写的函数(这包括用户定义的过程语言中的函数、SQL 编写的函数 )的调用都会流经一个用于指定语言的<firstterm>调用处理器</firstterm>。调用处理器负责以一种有意义的方式执行该函数,例如通过解释所提供的源文本。本章勾勒了如何编写一个新的过程语言调用处理器的轮廓。
35
34
</para>
36
35
37
36
<!--==========================orignal english content==========================
@@ -148,9 +147,7 @@ ____________________________________________________________________________-->
148
147
#include "catalog/pg_proc.h"
149
148
#include "catalog/pg_type.h"
150
149
151
- #ifdef PG_MODULE_MAGIC
152
150
PG_MODULE_MAGIC;
153
- #endif
154
151
155
152
PG_FUNCTION_INFO_V1(plsample_call_handler);
156
153
@@ -162,7 +159,7 @@ plsample_call_handler(PG_FUNCTION_ARGS)
162
159
if (CALLED_AS_TRIGGER(fcinfo))
163
160
{
164
161
/*
165
- * Called as a trigger procedure
162
+ * Called as a trigger function
166
163
*/
167
164
TriggerData *trigdata = (TriggerData *) fcinfo->context;
168
165
@@ -196,9 +193,7 @@ ____________________________________________________________________________-->
196
193
#include "catalog/pg_proc.h"
197
194
#include "catalog/pg_type.h"
198
195
199
- #ifdef PG_MODULE_MAGIC
200
196
PG_MODULE_MAGIC;
201
- #endif
202
197
203
198
PG_FUNCTION_INFO_V1(plsample_call_handler);
204
199
@@ -210,7 +205,7 @@ plsample_call_handler(PG_FUNCTION_ARGS)
210
205
if (CALLED_AS_TRIGGER(fcinfo))
211
206
{
212
207
/*
213
- * Called as a trigger procedure
208
+ * Called as a trigger function
214
209
*/
215
210
TriggerData *trigdata = (TriggerData *) fcinfo->context;
216
211
0 commit comments