Re: C-functions using SPI Missing Magic Block Error - Mailing list pgsql-general

From Joe Conway
Subject Re: C-functions using SPI Missing Magic Block Error
Date
Msg-id 4C2E0376.20504@joeconway.com
Whole thread Raw
In response to Re: C-functions using SPI Missing Magic Block Error  (Saitenheini@web.de)
Responses Re: C-functions using SPI Missing Magic Block Error  (Saitenheini@web.de)
List pgsql-general
On 07/02/2010 08:13 AM, Saitenheini@web.de wrote:
> Thanks for reply Tom!
>
> I've tried several version:
>
> #define _USE_32BIT_TIME_T
>
> #include "postgres.h"
> #include "fmgr.h"
> #include "executor\spi.h"
>
> /*
> #ifdef PG_MODULE_MAGIC
> PG_MODULE_MAGIC;
> #endif
> */

> but still the same error occurs.

You commented out

   PG_MODULE_MAGIC;

 -- don't do that. Just remove the #ifdef around it.

HTH,

Joe


Attachment

pgsql-general by date:

Previous
From: Saitenheini@web.de
Date:
Subject: Re: C-functions using SPI Missing Magic Block Error
Next
From: Chris Browne
Date:
Subject: Re: Scheduling backup