PostgreSQL Source Code git master
|
Go to the source code of this file.
Data Structures | |
struct | NODE |
struct | WORKSTATE |
struct | CHKVAL |
struct | GinChkVal |
struct | INFIX |
Macros | |
#define | WAITOPERAND 1 |
#define | WAITENDOPERAND 2 |
#define | WAITOPERATOR 3 |
#define | STACKDEPTH 16 |
#define | RESIZEBUF(inf, addsize) |
Typedefs | |
typedef struct NODE | NODE |
#define RESIZEBUF | ( | inf, | |
addsize | |||
) |
Definition at line 557 of file _int_bool.c.
#define STACKDEPTH 16 |
Definition at line 147 of file _int_bool.c.
#define WAITENDOPERAND 2 |
Definition at line 18 of file _int_bool.c.
#define WAITOPERAND 1 |
Definition at line 17 of file _int_bool.c.
#define WAITOPERATOR 3 |
Definition at line 19 of file _int_bool.c.
Datum boolop | ( | PG_FUNCTION_ARGS | ) |
Definition at line 417 of file _int_bool.c.
References CHKVAL::arrb, CHKVAL::arre, ARRNELEMS, ARRPTR, CHECKARRVALID, checkcondition_arr(), execute(), GETQUERY, pfree(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P_COPY, PG_GETARG_QUERYTYPE_P, PG_RETURN_BOOL, PREPAREARR, QUERYTYPE::size, and val.
Referenced by is_andclause(), is_notclause(), is_orclause(), makeBoolExpr(), and rboolop().
Datum bqarr_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 475 of file _int_bool.c.
References appendStringInfo(), buf, COMPUTESIZE, StringInfoData::data, DEBUG3, elog, ereturn, ERR, errcode(), errmsg(), findoprnd(), GETQUERY, i, initStringInfo(), makepol(), state::next, OPR, palloc(), pfree(), PG_GETARG_POINTER, PG_RETURN_NULL, PG_RETURN_POINTER, QUERYTYPEMAXITEMS, SET_VARSIZE, QUERYTYPE::size, ITEM::type, type, ITEM::val, val, and WAITOPERAND.
Datum bqarr_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 642 of file _int_bool.c.
References INFIX::buf, INFIX::buflen, INFIX::cur, INFIX::curpol, ereport, errcode(), errmsg(), ERROR, GETQUERY, infix(), palloc(), PG_FREE_IF_COPY, PG_GETARG_QUERYTYPE_P, PG_RETURN_POINTER, and QUERYTYPE::size.
|
static |
Definition at line 233 of file _int_bool.c.
References ITEM::val, and val.
Referenced by boolop(), and execconsistent().
|
static |
Definition at line 255 of file _int_bool.c.
References GETBIT, HASHVAL, and ITEM::val.
Referenced by signconsistent().
|
static |
Definition at line 326 of file _int_bool.c.
References GinChkVal::first, and GinChkVal::mapped_check.
Referenced by gin_bool_consistent().
|
static |
Definition at line 362 of file _int_bool.c.
References check_stack_depth(), contains_required_value(), ITEM::left, ITEM::type, ITEM::val, and VAL.
Referenced by contains_required_value(), and query_has_required_values().
Definition at line 307 of file _int_bool.c.
References CHKVAL::arrb, CHKVAL::arre, ARRNELEMS, ARRPTR, CHECKARRVALID, checkcondition_arr(), execute(), GETQUERY, and QUERYTYPE::size.
Referenced by g_int_consistent().
|
static |
Definition at line 264 of file _int_bool.c.
References check_stack_depth(), execute(), options, ITEM::type, and VAL.
Referenced by boolop(), execconsistent(), execute(), gin_bool_consistent(), and signconsistent().
Definition at line 438 of file _int_bool.c.
References check_stack_depth(), DEBUG3, elog, findoprnd(), ITEM::left, OPR, type, VAL, and val.
Referenced by bqarr_in(), and findoprnd().
Definition at line 48 of file _int_bool.c.
References CLOSE, END, ERR, OPEN, OPR, VAL, val, WAITENDOPERAND, WAITOPERAND, and WAITOPERATOR.
Referenced by makepol().
bool gin_bool_consistent | ( | QUERYTYPE * | query, |
bool * | check | ||
) |
Definition at line 334 of file _int_bool.c.
References checkcondition_gin(), execute(), GinChkVal::first, GETQUERY, i, items, j, GinChkVal::mapped_check, palloc(), QUERYTYPE::size, type, and VAL.
Referenced by ginint4_consistent().
|
static |
Definition at line 565 of file _int_bool.c.
References INFIX::buf, INFIX::buflen, check_stack_depth(), INFIX::cur, INFIX::curpol, infix(), OPR, palloc(), pfree(), RESIZEBUF, sprintf, ITEM::type, ITEM::val, and VAL.
Referenced by bqarr_out(), and infix().
Definition at line 153 of file _int_bool.c.
References check_stack_depth(), CLOSE, END, ereturn, ERR, errcode(), errmsg(), gettoken(), makepol(), OPEN, OPR, pushquery(), STACKDEPTH, type, VAL, and val.
Referenced by bqarr_in(), and makepol().
PG_FUNCTION_INFO_V1 | ( | boolop | ) |
PG_FUNCTION_INFO_V1 | ( | bqarr_in | ) |
PG_FUNCTION_INFO_V1 | ( | bqarr_out | ) |
PG_FUNCTION_INFO_V1 | ( | querytree | ) |
PG_FUNCTION_INFO_V1 | ( | rboolop | ) |
Definition at line 136 of file _int_bool.c.
References NODE::next, palloc(), NODE::type, type, NODE::val, and val.
Referenced by makepol().
bool query_has_required_values | ( | QUERYTYPE * | query | ) |
Definition at line 397 of file _int_bool.c.
References contains_required_value(), GETQUERY, and QUERYTYPE::size.
Referenced by ginint4_queryextract().
Datum querytree | ( | PG_FUNCTION_ARGS | ) |
Definition at line 665 of file _int_bool.c.
References elog, ERROR, and PG_RETURN_NULL.
Referenced by inline_function(), inline_set_returning_function(), and pg_plan_query().
Datum rboolop | ( | PG_FUNCTION_ARGS | ) |
Definition at line 408 of file _int_bool.c.
References boolop(), DirectFunctionCall2, and PG_GETARG_DATUM.
Definition at line 298 of file _int_bool.c.
References checkcondition_bit(), execute(), GETQUERY, sign, and QUERYTYPE::size.
Referenced by g_intbig_consistent().