small spi patch

Поиск
Список
Период
Сортировка
Искать

small spi patch

От:
Euler Taveira de Oliveira <euler@timbira.com>
Дата:
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/
*** 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 ----
  
  #include "executor/spi.h"
  
+ #ifdef PG_MODULE_MAGIC
+ PG_MODULE_MAGIC;
+ #endif
+ 
  int execq(text *sql, int cnt);
  
  int
***************
*** 3380,3386 ****
  
    
     This is how you declare the function after having compiled it into
!    a shared library:
  
  
  CREATE FUNCTION execq(text, integer) RETURNS integer
--- 3384,3390 ----
  
    
     This is how you declare the function after having compiled it into
!    a shared library (details are in .):
  
  
  CREATE FUNCTION execq(text, integer) RETURNS integer

Re: small spi patch

От:
Bruce Momjian <bruce@momjian.us>
Дата:

Patch applied.  Thanks.

---------------------------------------------------------------------------


Euler Taveira de Oliveira wrote:
> 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/


> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
> 
>                http://archives.postgresql.org

-- 
  Bruce Momjian            http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
FAQ