aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2007-09-14 04:18:27 +0000
committerBruce Momjian <bruce@momjian.us>2007-09-14 04:18:27 +0000
commitc0f2b109bce3e6518ee1b78fb2bd90369e4781af (patch)
tree6fbd69858385905ad93d2c6b608065fcf9f8f4ea
parentedc18429bdfffe9123760d481cd398454aa6a5ca (diff)
downloadpostgresql-c0f2b109bce3e6518ee1b78fb2bd90369e4781af.tar.gz
postgresql-c0f2b109bce3e6518ee1b78fb2bd90369e4781af.zip
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
-rw-r--r--doc/src/sgml/spi.sgml8
1 files 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 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.58 2007/07/05 19:15:12 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.59 2007/09/14 04:18:27 momjian Exp $ -->
<chapter id="spi">
<title>Server Programming Interface</title>
@@ -3326,6 +3326,10 @@ INSERT INTO a SELECT * FROM a;
<programlisting>
#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)
<para>
This is how you declare the function after having compiled it into
- a shared library:
+ a shared library (details are in <xref linkend="dfunc">.):
<programlisting>
CREATE FUNCTION execq(text, integer) RETURNS integer