PostgreSQL Source Code git master
|
#include "postgres.h"
#include "_int.h"
#include "access/htup_details.h"
#include "catalog/pg_operator.h"
#include "catalog/pg_statistic.h"
#include "catalog/pg_type.h"
#include "miscadmin.h"
#include "utils/fmgrprotos.h"
#include "utils/lsyscache.h"
#include "utils/selfuncs.h"
Go to the source code of this file.
Functions | |
PG_FUNCTION_INFO_V1 (_int_overlap_sel) | |
PG_FUNCTION_INFO_V1 (_int_contains_sel) | |
PG_FUNCTION_INFO_V1 (_int_contained_sel) | |
PG_FUNCTION_INFO_V1 (_int_overlap_joinsel) | |
PG_FUNCTION_INFO_V1 (_int_contains_joinsel) | |
PG_FUNCTION_INFO_V1 (_int_contained_joinsel) | |
PG_FUNCTION_INFO_V1 (_int_matchsel) | |
static Selectivity | int_query_opr_selec (ITEM *item, Datum *mcelems, float4 *mcefreqs, int nmcelems, float4 minfreq) |
static int | compare_val_int4 (const void *a, const void *b) |
Datum | _int_overlap_sel (PG_FUNCTION_ARGS) |
Datum | _int_contains_sel (PG_FUNCTION_ARGS) |
Datum | _int_contained_sel (PG_FUNCTION_ARGS) |
Datum | _int_overlap_joinsel (PG_FUNCTION_ARGS) |
Datum | _int_contains_joinsel (PG_FUNCTION_ARGS) |
Datum | _int_contained_joinsel (PG_FUNCTION_ARGS) |
Datum | _int_matchsel (PG_FUNCTION_ARGS) |
Datum _int_contained_joinsel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 107 of file _int_selfuncs.c.
References arraycontjoinsel(), DirectFunctionCall5, ObjectIdGetDatum(), PG_GETARG_DATUM, and PG_RETURN_DATUM.
Datum _int_contained_sel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 75 of file _int_selfuncs.c.
References arraycontsel(), DirectFunctionCall4, ObjectIdGetDatum(), PG_GETARG_DATUM, and PG_RETURN_DATUM.
Datum _int_contains_joinsel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 96 of file _int_selfuncs.c.
References arraycontjoinsel(), DirectFunctionCall5, ObjectIdGetDatum(), PG_GETARG_DATUM, and PG_RETURN_DATUM.
Datum _int_contains_sel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 65 of file _int_selfuncs.c.
References arraycontsel(), DirectFunctionCall4, ObjectIdGetDatum(), PG_GETARG_DATUM, and PG_RETURN_DATUM.
Datum _int_matchsel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 122 of file _int_selfuncs.c.
References generate_unaccent_rules::args, Assert, ATTSTATSSLOT_NUMBERS, ATTSTATSSLOT_VALUES, CLAMP_PROBABILITY, DatumGetQueryTypeP, DEFAULT_EQ_SEL, free_attstatsslot(), get_attstatsslot(), get_restriction_variable(), GETQUERY, GETSTRUCT, HeapTupleIsValid, int_query_opr_selec(), InvalidOid, IsA, AttStatsSlot::nnumbers, AttStatsSlot::numbers, AttStatsSlot::nvalues, PG_GETARG_INT32, PG_GETARG_POINTER, PG_RETURN_FLOAT8, ReleaseVariableStats, root, QUERYTYPE::size, VariableStatData::statsTuple, AttStatsSlot::values, AttStatsSlot::valuetype, and VariableStatData::vartype.
Datum _int_overlap_joinsel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 85 of file _int_selfuncs.c.
References arraycontjoinsel(), DirectFunctionCall5, ObjectIdGetDatum(), PG_GETARG_DATUM, and PG_RETURN_DATUM.
Datum _int_overlap_sel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 55 of file _int_selfuncs.c.
References arraycontsel(), DirectFunctionCall4, ObjectIdGetDatum(), PG_GETARG_DATUM, and PG_RETURN_DATUM.
|
static |
Definition at line 326 of file _int_selfuncs.c.
References a, b, DatumGetInt32(), and sort-test::key.
Referenced by int_query_opr_selec().
|
static |
Definition at line 244 of file _int_selfuncs.c.
References check_stack_depth(), CLAMP_PROBABILITY, compare_val_int4(), DEFAULT_EQ_SEL, elog, ERROR, int_query_opr_selec(), ITEM::left, Min, OPR, s1, s2, ITEM::type, ITEM::val, and VAL.
Referenced by _int_matchsel(), and int_query_opr_selec().
PG_FUNCTION_INFO_V1 | ( | _int_contained_joinsel | ) |
PG_FUNCTION_INFO_V1 | ( | _int_contained_sel | ) |
PG_FUNCTION_INFO_V1 | ( | _int_contains_joinsel | ) |
PG_FUNCTION_INFO_V1 | ( | _int_contains_sel | ) |
PG_FUNCTION_INFO_V1 | ( | _int_matchsel | ) |
PG_FUNCTION_INFO_V1 | ( | _int_overlap_joinsel | ) |
PG_FUNCTION_INFO_V1 | ( | _int_overlap_sel | ) |