File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.58 2007/07/05 19:15:12 tgl Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.59 2007/09/14 04:18:27 momjian Exp $ -->
2
2
3
3
<chapter id="spi">
4
4
<title>Server Programming Interface</title>
@@ -3326,6 +3326,10 @@ INSERT INTO a SELECT * FROM a;
3326
3326
<programlisting>
3327
3327
#include "executor/spi.h"
3328
3328
3329
+ #ifdef PG_MODULE_MAGIC
3330
+ PG_MODULE_MAGIC;
3331
+ #endif
3332
+
3329
3333
int execq(text *sql, int cnt);
3330
3334
3331
3335
int
@@ -3381,7 +3385,7 @@ execq(text *sql, int cnt)
3381
3385
3382
3386
<para>
3383
3387
This is how you declare the function after having compiled it into
3384
- a shared library:
3388
+ a shared library (details are in <xref linkend="dfunc">.) :
3385
3389
3386
3390
<programlisting>
3387
3391
CREATE FUNCTION execq(text, integer) RETURNS integer
You can’t perform that action at this time.
0 commit comments