diff --git a/doc/src/sgml/spi.sgml b/doc/src/sgml/spi.sgml index a875d8585bb..fca48caec04 100644 --- a/doc/src/sgml/spi.sgml +++ b/doc/src/sgml/spi.sgml @@ -1,4 +1,4 @@ - + Server Programming Interface @@ -3326,6 +3326,10 @@ INSERT INTO a SELECT * FROM a; #include "executor/spi.h" +#ifdef PG_MODULE_MAGIC +PG_MODULE_MAGIC; +#endif + int execq(text *sql, int cnt); int @@ -3381,7 +3385,7 @@ execq(text *sql, int cnt) This is how you declare the function after having compiled it into - a shared library: + a shared library (details are in .): CREATE FUNCTION execq(text, integer) RETURNS integer