From: Bruce Momjian Date: Fri, 14 Sep 2007 04:18:27 +0000 (+0000) Subject: This is small patch fixes a spi example (PG_MODULE_MAGIC is required as X-Git-Tag: REL8_3_BETA1~176 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0f2b109bce3e6518ee1b78fb2bd90369e4781af;p=thirdparty%2Fpostgresql.git This is small patch fixes a spi example (PG_MODULE_MAGIC is required as of PostgreSQL 8.2) and provides a link to compiling and linking section. Euler Taveira de Oliveira --- 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