|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/brin_internal.h"#include "access/brin_tuple.h"#include "access/stratnum.h"#include "catalog/pg_amop.h"#include "utils/datum.h"#include "utils/fmgrprotos.h"#include "utils/lsyscache.h"#include "utils/rel.h"#include "utils/syscache.h"
Go to the source code of this file.
Data Structures | |
| struct | MinmaxOpaque |
Typedefs | |
| typedef struct MinmaxOpaque | MinmaxOpaque |
| Datum brin_minmax_add_value | ( | PG_FUNCTION_ARGS | ) |
Definition at line 64 of file brin_minmax.c.
References Assert, BTGreaterStrategyNumber, BTLessStrategyNumber, datumCopy(), DatumGetBool(), DatumGetPointer(), fb(), FunctionCall2Coll(), minmax_get_strategy_procinfo(), newval, pfree(), PG_GET_COLLATION, PG_GETARG_BOOL, PG_GETARG_DATUM, PG_GETARG_POINTER, PG_RETURN_BOOL, PG_USED_FOR_ASSERTS_ONLY, and TupleDescAttr().
| Datum brin_minmax_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 137 of file brin_minmax.c.
References Assert, BTEqualStrategyNumber, BTGreaterEqualStrategyNumber, BTGreaterStrategyNumber, BTLessEqualStrategyNumber, BTLessStrategyNumber, DatumGetBool(), elog, ERROR, fb(), FunctionCall2Coll(), minmax_get_strategy_procinfo(), PG_GET_COLLATION, PG_GETARG_POINTER, PG_NARGS, PG_RETURN_DATUM, and value.
| Datum brin_minmax_opcinfo | ( | PG_FUNCTION_ARGS | ) |
Definition at line 34 of file brin_minmax.c.
References lookup_type_cache(), MAXALIGN, BrinOpcInfo::oi_nstored, BrinOpcInfo::oi_opaque, BrinOpcInfo::oi_regular_nulls, BrinOpcInfo::oi_typcache, palloc0(), PG_GETARG_OID, PG_RETURN_POINTER, and SizeofBrinOpcInfo.
| Datum brin_minmax_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 208 of file brin_minmax.c.
References Assert, BTGreaterStrategyNumber, BTLessStrategyNumber, datumCopy(), DatumGetBool(), DatumGetPointer(), fb(), FunctionCall2Coll(), minmax_get_strategy_procinfo(), pfree(), PG_GET_COLLATION, PG_GETARG_POINTER, PG_RETURN_VOID, and TupleDescAttr().
|
static |
Definition at line 261 of file brin_minmax.c.
References Assert, BTMaxStrategyNumber, MinmaxOpaque::cached_subtype, DatumGetObjectId(), elog, ERROR, fb(), fmgr_info_cxt(), FmgrInfo::fn_oid, get_opcode(), HeapTupleIsValid, i, InvalidOid, ObjectIdGetDatum(), oprid(), RegProcedureIsValid, ReleaseSysCache(), SearchSysCache4(), MinmaxOpaque::strategy_procinfos, SysCacheGetAttrNotNull(), TupleDescAttr(), and UInt16GetDatum().
Referenced by brin_minmax_add_value(), brin_minmax_consistent(), and brin_minmax_union().