Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc0f2b10

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 parentedc1842 commitc0f2b10

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)

[8]ページ先頭

©2009-2025 Movatter.jp