#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <ulogd/ulogd.h>
#include <ulogd/conffile.h>
#include <libpq-fe.h>
#include <inttypes.h>
#define DEBUGP |
( |
|
x, |
|
|
|
args... |
|
) |
| |
#define PGSQL_GETCOLUMN_TEMPLATE |
Value:"SELECT a.attname,t.typname FROM pg_class c, pg_attribute a, "\
"pg_type t WHERE c.relname ='%s' AND a.attnum>0 AND a.attrelid="\
"c.oid AND a.atttypid=t.oid ORDER BY a.attnum"
#define PGSQL_GETCOLUMN_TEMPLATE_SCHEMA |
Value:"SELECT a.attname,t.typname FROM "\
"pg_attribute a, pg_type t, pg_class c LEFT JOIN pg_namespace n ON "\
"c.relnamespace=n.oid WHERE c.relname ='%s' AND n.nspname='%s' AND "\
"a.attnum>0 AND a.attrelid=c.oid AND a.atttypid=t.oid AND "\
"a.attisdropped=FALSE ORDER BY a.attnum"
#define PGSQL_HAVE_NAMESPACE_TEMPLATE "SELECT nspname FROM pg_namespace n WHERE n.nspname='%s'" |
#define PGSQL_INSERTTEMPL "insert into X (Y) values (Z)" |
#define PGSQL_VALSIZE 100 |
#define STMT_ADD |
( |
|
pos, |
|
|
|
fmt... |
|
) |
| |
Value:do { \
} while(0)
Definition: statement.h:169
u8 pos
Definition: ip_set_hash_gen.h:187