Search Postgresql Archives

Re: C-functions using SPI Missing Magic Block Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Saitenheini@xxxxxx writes:
> I compiled the file "pgExampleSPI.c" with the following code without any error:

> /* Use 32-bit timer (provided header file uses 64-bit timer, not
> * compatible with Windows postgreSQL versions */
> #define _USE_32BIT_TIME_T

> #include "postgres.h"
> #include "executor\spi.h"

> #ifdef PG_MODULE_MAGIC
> PG_MODULE_MAGIC;
> #endif

That's not going to do anything because you didn't #include the header
that defines PG_MODULE_MAGIC.  I think it's fmgr.h but not sure offhand.
I'd suggest taking out the #ifdef so you actually get an error if the
definition isn't provided.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux