From c0f2b109bce3e6518ee1b78fb2bd90369e4781af Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 14 Sep 2007 04:18:27 +0000 Subject: [PATCH] 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 --- doc/src/sgml/spi.sgml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5