netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ulogd_PGSQL.c File Reference
#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>
Include dependency graph for ulogd_PGSQL.c:

Data Structures

struct  _field
 

Macros

#define DEBUGP(x, args...)
 
#define STMT_ADD(pos, fmt...)
 
#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 PGSQL_GETCOLUMN_TEMPLATE
 
#define PGSQL_GETCOLUMN_TEMPLATE_SCHEMA
 

Functions

void _init (void)
 

Macro Definition Documentation

#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 { \
if ((pos) >= stmt && stmt_siz > (pos) - stmt) \
snprintf((pos), stmt_siz-((pos)-stmt), ##fmt); \
} while(0)
Definition: statement.h:169
u8 pos
Definition: ip_set_hash_gen.h:187

Function Documentation

void _init ( void  )

References register_output().

Here is the call graph for this function: