Postgres extension for VPD implementations
Go to the documentation of this file.
20 typedef bool (Fetch_fn)(HeapTuple, TupleDesc, void *);
28 typedef struct {
30  int f1;
32  int f2;
38 extern void veil2_spi_connect(bool *p_pushed, const char *msg);
39 extern void veil2_spi_finish(bool pushed, const char *msg);
47  Fetch_fn process_row,
55  Fetch_fn process_row,
70 Datum veil2_true(PG_FUNCTION_ARGS);
79 Datum veil2_docpath(PG_FUNCTION_ARGS);
80 Datum veil2_datapath(PG_FUNCTION_ARGS);
84 #define DOCS_PATH "<path to postgres extension docs>"
88 #define DATA_PATH "<path to postgres extension data files>"
Datum veil2_i_have_priv_in_scope_or_superior(PG_FUNCTION_ARGS)
Datum veil2_i_have_priv_in_scope_or_global(PG_FUNCTION_ARGS)
Datum veil2_result_counts(PG_FUNCTION_ARGS)
int f1
Definition: veil2.h:30
void veil2_spi_finish(bool pushed, const char *msg)
Definition: query.c:66
Datum veil2_reset_session(PG_FUNCTION_ARGS)
Datum veil2_docpath(PG_FUNCTION_ARGS)
Datum veil2_i_have_priv_in_superior_scope(PG_FUNCTION_ARGS)
void veil2_spi_connect(bool *p_pushed, const char *msg)
Definition: query.c:38
Datum veil2_i_have_personal_priv(PG_FUNCTION_ARGS)
int f2
Definition: veil2.h:32
Datum veil2_reset_session_privs(PG_FUNCTION_ARGS)
bool() Fetch_fn(HeapTuple, TupleDesc, void *)
Definition: veil2.h:20
Datum veil2_i_have_global_priv(PG_FUNCTION_ARGS)
Datum veil2_session_ready(PG_FUNCTION_ARGS)
int veil2_query_wn(const char *qry, int nargs, Oid *argtypes, Datum *args, const char *nulls, bool read_only, void **saved_plan, Fetch_fn process_row, void *fn_param)
Definition: query.c:165
Datum veil2_datapath(PG_FUNCTION_ARGS)
int veil2_query(const char *qry, int nargs, Oid *argtypes, Datum *args, bool read_only, void **saved_plan, Fetch_fn process_row, void *fn_param)
Definition: query.c:218
Datum veil2_i_have_priv_in_scope_or_superior_or_global(PG_FUNCTION_ARGS)
Datum veil2_i_have_priv_in_scope(PG_FUNCTION_ARGS)
bool veil2_bool_from_query(const char *qry, int nargs, Oid *argtypes, Datum *args, void **saved_plan, bool *result)
Definition: query.c:267
Datum veil2_true(PG_FUNCTION_ARGS)