#include "postgres.h"
#include "access/htup_details.h"
#include "catalog/pg_statistic.h"
#include "catalog/pg_type.h"
#include "miscadmin.h"
#include "nodes/nodes.h"
#include "tsearch/ts_type.h"
#include "utils/fmgrprotos.h"
#include "utils/lsyscache.h"
#include "utils/selfuncs.h"
Go to the source code of this file.
Definition at line 32 of file ts_selfuncs.c.
Definition at line 56 of file ts_selfuncs.c.
Definition at line 437 of file ts_selfuncs.c.
References TextFreq::element, sort-test::key, VARDATA_ANY(), and VARSIZE_ANY_EXHDR().
Referenced by tsquery_opr_selec().
Definition at line 207 of file ts_selfuncs.c.
References Assert(), DatumGetPointer(), GETOPERAND, GETQUERY, i, palloc(), pfree(), tsquery_opr_selec(), tsquery_opr_selec_no_stats, VARATT_IS_COMPRESSED(), and VARATT_IS_EXTERNAL().
Referenced by tsquerysel().
Definition at line 139 of file ts_selfuncs.c.
References DEFAULT_TS_MATCH_SEL, and PG_RETURN_FLOAT8.
Definition at line 67 of file ts_selfuncs.c.
References generate_unaccent_rules::args, Assert(), CLAMP_PROBABILITY, DEFAULT_TS_MATCH_SEL, get_restriction_variable(), IsA, PG_GETARG_INT32, PG_GETARG_OID, PG_GETARG_POINTER, PG_RETURN_FLOAT8, ReleaseVariableStats, root, tsquerysel(), and VariableStatData::vartype.
Definition at line 278 of file ts_selfuncs.c.
References check_stack_depth(), CLAMP_PROBABILITY, compare_lexeme_textfreq(), DEFAULT_TS_MATCH_SEL, TextFreq::element, elog, ERROR, TextFreq::frequency, i, sort-test::key, QueryOperator::left, Max, Min, OP_AND, OP_NOT, OP_OR, OP_PHRASE, oper(), QueryOperator::oper, QI_VAL, QueryItem::qoperator, s1, s2, tsquery_opr_selec(), QueryItem::type, VARDATA_ANY(), and VARSIZE_ANY_EXHDR().
Referenced by mcelem_tsquery_selec(), and tsquery_opr_selec().
Definition at line 150 of file ts_selfuncs.c.
References ATTSTATSSLOT_NUMBERS, ATTSTATSSLOT_VALUES, DatumGetTSQuery(), free_attstatsslot(), get_attstatsslot(), GETSTRUCT(), HeapTupleIsValid, InvalidOid, mcelem_tsquery_selec(), AttStatsSlot::nnumbers, AttStatsSlot::numbers, AttStatsSlot::nvalues, TSQueryData::size, VariableStatData::statsTuple, tsquery_opr_selec_no_stats, and AttStatsSlot::values.
Referenced by tsmatchsel().