#include "executor/spi.h"
#include "utils/builtins.h"
-#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
-#endif
int64 execq(text *sql, int cnt);
file contains a magic block> with the appropriate contents.
This allows the server to detect obvious incompatibilities, such as code
compiled for a different major version of
-
PostgreSQL. A magic block is required as of
-
PostgreSQL 8.2. To include a magic block,
+
PostgreSQL. To include a magic block,
write this in one (and only one) of the module source files, after having
included the header fmgr.h>:
-#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
-#endif
-
- The #ifdef> test can be omitted if the code doesn't
- need to compile against pre-8.2
PostgreSQL
- releases.
#include "fmgr.h"
#include "utils/geo_decls.h"
-#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
-#endif
/* by value */
#include "postgres.h"
#include "executor/executor.h" /* for GetAttributeByName() */
-#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
-#endif
PG_FUNCTION_INFO_V1(c_overpaid);