10 /* postgreSQL stuff */
11 #include "executor/spi.h"
12 #include "commands/trigger.h"
13 #include "utils/elog.h"
14 #include "utils/builtins.h"
16 #include "access/heapam.h"
18 #include "tcop/tcopprot.h"
19 #include "utils/syscache.h"
20 #include "catalog/pg_proc.h"
21 #include "catalog/pg_type.h"
27 * both posgreSQL and perl try to do 'the right thing'
28 * and provide union semun if the platform doesn't define
29 * it in a system header.
30 * psql uses HAVE_UNION_SEMUN
31 * perl uses HAS_UNION_SEMUN
32 * together, they cause compile errors.
33 * If we need it, the psql headers above will provide it.
34 * So we tell perl that we have it.
36 #ifndef HAS_UNION_SEMUN
37 #define HAS_UNION_SEMUN
48 MODULE = SPI PREFIX = elog_
54 elog_elog(level, message)