Skip to content

Commit c0f2b10

Browse files
committed
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
1 parent edc1842 commit c0f2b10

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

doc/src/sgml/spi.sgml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 $ -->
22

33
<chapter id="spi">
44
<title>Server Programming Interface</title>
@@ -3326,6 +3326,10 @@ INSERT INTO a SELECT * FROM a;
33263326
<programlisting>
33273327
#include "executor/spi.h"
33283328

3329+
#ifdef PG_MODULE_MAGIC
3330+
PG_MODULE_MAGIC;
3331+
#endif
3332+
33293333
int execq(text *sql, int cnt);
33303334

33313335
int
@@ -3381,7 +3385,7 @@ execq(text *sql, int cnt)
33813385

33823386
<para>
33833387
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">.):
33853389

33863390
<programlisting>
33873391
CREATE FUNCTION execq(text, integer) RETURNS integer

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy