|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <math.h>#include "access/htup_details.h"#include "catalog/pg_operator.h"#include "catalog/pg_statistic.h"#include "utils/float.h"#include "utils/fmgrprotos.h"#include "utils/lsyscache.h"#include "utils/multirangetypes.h"#include "utils/rangetypes.h"#include "utils/selfuncs.h"#include "utils/typcache.h"
Go to the source code of this file.
|
static |
Definition at line 456 of file multirangetypes_selfuncs.c.
References Assert, ATTSTATSSLOT_VALUES, calc_hist_selectivity_contained(), calc_hist_selectivity_contains(), calc_hist_selectivity_scalar(), DatumGetRangeTypeP(), elog, ERROR, fb(), free_attstatsslot(), get_attstatsslot(), HeapTupleIsValid, i, InvalidOid, multirange_get_bounds(), OidIsValid, palloc_array, range_deserialize(), MultirangeType::rangeCount, TypeCacheEntry::rngtype, and statistic_proc_security_check().
Referenced by calc_multirangesel().
|
static |
Definition at line 1131 of file multirangetypes_selfuncs.c.
References calc_length_hist_frac(), fb(), get_distance(), get_position(), i, lower(), Min, range_cmp_bounds(), rbound_bsearch(), and upper().
Referenced by calc_hist_selectivity().
|
static |
Definition at line 1252 of file multirangetypes_selfuncs.c.
References calc_length_hist_frac(), fb(), get_distance(), get_position(), i, lower(), Min, rbound_bsearch(), and upper().
Referenced by calc_hist_selectivity().
|
static |
Definition at line 707 of file multirangetypes_selfuncs.c.
References equal(), fb(), get_position(), Max, and rbound_bsearch().
Referenced by calc_hist_selectivity().
|
static |
Definition at line 966 of file multirangetypes_selfuncs.c.
References Assert, DatumGetFloat8(), equal(), fb(), get_len_position(), i, and length_hist_bsearch().
Referenced by calc_hist_selectivity_contained(), and calc_hist_selectivity_contains().
|
static |
Definition at line 291 of file multirangetypes_selfuncs.c.
References ATTSTATSSLOT_NUMBERS, calc_hist_selectivity(), CLAMP_PROBABILITY, default_multirange_selectivity(), elog, ERROR, fb(), free_attstatsslot(), get_attstatsslot(), GETSTRUCT(), HeapTupleIsValid, InvalidOid, and MultirangeIsEmpty.
Referenced by multirangesel().
Definition at line 78 of file multirangetypes_selfuncs.c.
References DEFAULT_INEQ_SEL, DEFAULT_MULTIRANGE_INEQ_SEL, and fb().
Referenced by calc_multirangesel(), and multirangesel().
|
static |
Definition at line 918 of file multirangetypes_selfuncs.c.
References DatumGetFloat8(), fb(), FmgrInfo::fn_oid, FunctionCall2Coll(), get_float8_infinity(), OidIsValid, TypeCacheEntry::rng_collation, and TypeCacheEntry::rng_subdiff_finfo.
Referenced by calc_hist_selectivity_contained(), and calc_hist_selectivity_contains().
Definition at line 873 of file multirangetypes_selfuncs.c.
Referenced by calc_length_hist_frac().
|
static |
Definition at line 794 of file multirangetypes_selfuncs.c.
References DatumGetFloat8(), fb(), FmgrInfo::fn_oid, FunctionCall2Coll(), Max, Min, OidIsValid, TypeCacheEntry::rng_collation, TypeCacheEntry::rng_subdiff_finfo, and value.
Referenced by calc_hist_selectivity_contained(), calc_hist_selectivity_contains(), and calc_hist_selectivity_scalar().
|
static |
Definition at line 768 of file multirangetypes_selfuncs.c.
References DatumGetFloat8(), equal(), fb(), lower(), upper(), and value.
Referenced by calc_length_hist_frac().
| Datum multirangesel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 137 of file multirangetypes_selfuncs.c.
References calc_multirangesel(), CLAMP_PROBABILITY, DatumGetMultirangeTypeP(), DatumGetRangeTypeP(), default_multirange_selectivity(), fb(), get_commutator(), get_restriction_variable(), RangeBound::inclusive, IsA, lower(), make_multirange(), multirange_get_typcache(), PG_GETARG_INT32, PG_GETARG_OID, PG_GETARG_POINTER, PG_RETURN_FLOAT8, range_serialize(), ReleaseVariableStats, TypeCacheEntry::rngelemtype, TypeCacheEntry::rngtype, root, TypeCacheEntry::type_id, and upper().
|
static |
Definition at line 739 of file multirangetypes_selfuncs.c.
References cmp(), equal(), fb(), lower(), range_cmp_bounds(), upper(), and value.
Referenced by calc_hist_selectivity_contained(), calc_hist_selectivity_contains(), and calc_hist_selectivity_scalar().