|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/amapi.h"#include "access/htup_details.h"#include "catalog/pg_am.h"#include "catalog/pg_opclass.h"#include "utils/fmgrprotos.h"#include "utils/syscache.h"
Go to the source code of this file.
Functions | |
| const IndexAmRoutine * | GetIndexAmRoutine (Oid amhandler) |
| const IndexAmRoutine * | GetIndexAmRoutineByAmId (Oid amoid, bool noerror) |
| CompareType | IndexAmTranslateStrategy (StrategyNumber strategy, Oid amoid, Oid opfamily, bool missing_ok) |
| StrategyNumber | IndexAmTranslateCompareType (CompareType cmptype, Oid amoid, Oid opfamily, bool missing_ok) |
| Datum | amvalidate (PG_FUNCTION_ARGS) |
| Datum amvalidate | ( | PG_FUNCTION_ARGS | ) |
Definition at line 187 of file amapi.c.
References elog, ERROR, fb(), GetIndexAmRoutineByAmId(), GETSTRUCT(), HeapTupleIsValid, ObjectIdGetDatum(), PG_GETARG_OID, PG_RETURN_BOOL, ReleaseSysCache(), and SearchSysCache1().
| const IndexAmRoutine * GetIndexAmRoutine | ( | Oid | amhandler | ) |
Definition at line 33 of file amapi.c.
References IndexAmRoutine::ambeginscan, IndexAmRoutine::ambuild, IndexAmRoutine::ambuildempty, IndexAmRoutine::ambulkdelete, IndexAmRoutine::amcostestimate, IndexAmRoutine::amendscan, IndexAmRoutine::aminsert, IndexAmRoutine::amoptions, IndexAmRoutine::amrescan, IndexAmRoutine::amvacuumcleanup, IndexAmRoutine::amvalidate, Assert, DatumGetPointer(), elog, ERROR, fb(), IsA, and OidFunctionCall0.
Referenced by CheckIndexCompatible(), DefineIndex(), GetIndexAmRoutineByAmId(), InitIndexAmRoutine(), and pg_get_indexdef_worker().
| const IndexAmRoutine * GetIndexAmRoutineByAmId | ( | Oid | amoid, |
| bool | noerror | ||
| ) |
Definition at line 69 of file amapi.c.
References elog, ereport, errcode(), errmsg(), ERROR, fb(), GetIndexAmRoutine(), GETSTRUCT(), HeapTupleIsValid, NameStr, ObjectIdGetDatum(), RegProcedureIsValid, ReleaseSysCache(), and SearchSysCache1().
Referenced by AlterOpFamily(), AlterOpFamilyAdd(), amvalidate(), assignOperTypes(), assignProcTypes(), comparison_ops_are_compatible(), ConstructTupleDescriptor(), DefineOpClass(), equality_ops_are_compatible(), get_op_index_interpretation(), get_opmethod_canorder(), indexam_property(), IndexAmTranslateCompareType(), IndexAmTranslateStrategy(), IndexSupportsBackwardScan(), IsIndexUsableForReplicaIdentityFull(), and pg_indexam_progress_phasename().
| StrategyNumber IndexAmTranslateCompareType | ( | CompareType | cmptype, |
| Oid | amoid, | ||
| Oid | opfamily, | ||
| bool | missing_ok | ||
| ) |
Definition at line 161 of file amapi.c.
References COMPARE_GT, COMPARE_INVALID, elog, ERROR, fb(), GetIndexAmRoutineByAmId(), and InvalidStrategy.
Referenced by ATAddForeignKeyConstraint(), build_replindex_scan_key(), BuildSpeculativeIndexInfo(), get_opfamily_member_for_cmptype(), GetOperatorFromCompareType(), IsIndexUsableForReplicaIdentityFull(), and mergejoinscansel().
| CompareType IndexAmTranslateStrategy | ( | StrategyNumber | strategy, |
| Oid | amoid, | ||
| Oid | opfamily, | ||
| bool | missing_ok | ||
| ) |
Definition at line 131 of file amapi.c.
References BTMaxStrategyNumber, COMPARE_INVALID, elog, ERROR, fb(), GetIndexAmRoutineByAmId(), and InvalidStrategy.
Referenced by get_actual_variable_range(), get_mergejoin_opfamilies(), get_op_index_interpretation(), get_ordering_op_for_equality_op(), get_ordering_op_properties(), mergejoinscansel(), and MJExamineQuals().