Re: C-functions using SPI Missing Magic Block Error

From: Joe Conway <mail(at)joeconway(dot)com>
To: Saitenheini(at)web(dot)de
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: C-functions using SPI Missing Magic Block Error
Date: 2010-07-02 15:19:18
Message-ID: 4C2E0376.20504@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/02/2010 08:13 AM, Saitenheini(at)web(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Saitenheini 2010-07-02 15:36:03 Re: C-functions using SPI Missing Magic Block Error
Previous Message Saitenheini 2010-07-02 15:13:23 Re: C-functions using SPI Missing Magic Block Error