of PostgreSQL 8.2) and provides a link to compiling and linking section.
Euler Taveira de Oliveira
-
+
Server Programming Interface
#include "executor/spi.h"
+#ifdef PG_MODULE_MAGIC
+PG_MODULE_MAGIC;
+#endif
+
int execq(text *sql, int cnt);
int
This is how you declare the function after having compiled it into
- a shared library:
+ a shared library (details are in .):
CREATE FUNCTION execq(text, integer) RETURNS integer