Skip to content

Commit c53dfeb

Browse files
author
Steve888888
committed
更新其余部分版本11.2 plhander.sgml
1 parent 496886d commit c53dfeb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

postgresql/doc/src/sgml/plhandler.sgml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ____________________________________________________________________________-->
3030
</para>
3131
____________________________________________________________________________-->
3232
<para>
33-
所有对用不是当前<quote>版本 1</quote>接口(用于编译型语言)语言编写的函数(这包括用户定义的过程语言中的函数、SQL 编写的函数以及使用版本 0 编译型语言接口的函数)的调用都会流经一个用于指定语言的<firstterm>调用处理器</firstterm>。调用处理器负责以一种有意义的方式执行该函数,例如通过解释所提供的源文本。本章勾勒了如何编写一个新的过程语言调用处理器的轮廓。
33+
所有对用不是当前<quote>版本 1</quote>接口(用于编译型语言)语言编写的函数(这包括用户定义的过程语言中的函数、SQL 编写的函数)的调用都会流经一个用于指定语言的<firstterm>调用处理器</firstterm>。调用处理器负责以一种有意义的方式执行该函数,例如通过解释所提供的源文本。本章勾勒了如何编写一个新的过程语言调用处理器的轮廓。
3434
</para>
3535

3636
<!--==========================orignal english content==========================
@@ -147,9 +147,7 @@ ____________________________________________________________________________-->
147147
#include "catalog/pg_proc.h"
148148
#include "catalog/pg_type.h"
149149

150-
#ifdef PG_MODULE_MAGIC
151150
PG_MODULE_MAGIC;
152-
#endif
153151

154152
PG_FUNCTION_INFO_V1(plsample_call_handler);
155153

@@ -161,7 +159,7 @@ plsample_call_handler(PG_FUNCTION_ARGS)
161159
if (CALLED_AS_TRIGGER(fcinfo))
162160
{
163161
/*
164-
* Called as a trigger procedure
162+
* Called as a trigger function
165163
*/
166164
TriggerData *trigdata = (TriggerData *) fcinfo-&gt;context;
167165

@@ -195,9 +193,7 @@ ____________________________________________________________________________-->
195193
#include "catalog/pg_proc.h"
196194
#include "catalog/pg_type.h"
197195

198-
#ifdef PG_MODULE_MAGIC
199196
PG_MODULE_MAGIC;
200-
#endif
201197

202198
PG_FUNCTION_INFO_V1(plsample_call_handler);
203199

@@ -209,7 +205,7 @@ plsample_call_handler(PG_FUNCTION_ARGS)
209205
if (CALLED_AS_TRIGGER(fcinfo))
210206
{
211207
/*
212-
* Called as a trigger procedure
208+
* Called as a trigger function
213209
*/
214210
TriggerData *trigdata = (TriggerData *) fcinfo-&gt;context;
215211

0 commit comments

Comments
 (0)