pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Euler Taveira de Oliveira <euler@timbira.com>
To: pgsql-docs@postgresql.org
Subject: small spi patch
Date: Fri, 24 Aug 2007 00:25:53 -0300
Message-ID: <46CE4FC1.9080003@timbira.com> (raw)

Hi,

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
  http://www.timbira.com/

Attachments:

spi.diff (text/x-patch, 771B) download *** spi.sgml.orig 2007-08-23 23:57:09.000000000 -0300 --- spi.sgml 2007-08-24 00:06:37.000000000 -0300 *************** *** 3325,3330 **** --- 3325,3334 ---- <programlisting> #include "executor/spi.h" + #ifdef PG_MODULE_MAGIC + PG_MODULE_MAGIC; + #endif + int execq(text *sql, int cnt); int *************** *** 3380,3386 **** <para> This is how you declare the function after having compiled it into ! a shared library: <programlisting> CREATE FUNCTION execq(text, integer) RETURNS integer --- 3384,3390 ---- <para> This is how you declare the function after having compiled it into ! a shared library (details are in <xref linkend="dfunc">.): <programlisting> CREATE FUNCTION execq(text, integer) RETURNS integer

view thread (2+ messages)  latest in thread

Message-ID: <46CE4FC1.9080003@timbira.com>
Permalink:  ../46CE4FC1.9080003@timbira.com/
Also on:    postgresql.org/message-id/46CE4FC1.9080003@timbira.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: euler@timbira.com
  Subject: Re: small spi patch
  In-Reply-To: <46CE4FC1.9080003@timbira.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox