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 | |
IndexAmRoutine * | GetIndexAmRoutine (Oid amhandler) |
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 164 of file amapi.c.
References IndexAmRoutine::amvalidate, elog, ERROR, GetIndexAmRoutineByAmId(), GETSTRUCT(), HeapTupleIsValid, ObjectIdGetDatum(), pfree(), PG_GETARG_OID, PG_RETURN_BOOL, ReleaseSysCache(), and SearchSysCache1().
IndexAmRoutine * GetIndexAmRoutine | ( | Oid | amhandler | ) |
Definition at line 33 of file amapi.c.
References DatumGetPointer(), elog, ERROR, IsA, and OidFunctionCall0.
Referenced by CheckIndexCompatible(), DefineIndex(), GetIndexAmRoutineByAmId(), InitIndexAmRoutine(), and pg_get_indexdef_worker().
IndexAmRoutine * GetIndexAmRoutineByAmId | ( | Oid | amoid, |
bool | noerror | ||
) |
Definition at line 56 of file amapi.c.
References elog, ereport, errcode(), errmsg(), ERROR, 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(), 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 143 of file amapi.c.
References IndexAmRoutine::amtranslatecmptype, elog, ERROR, GetIndexAmRoutineByAmId(), and InvalidStrategy.
Referenced by ATAddForeignKeyConstraint(), build_replindex_scan_key(), BuildSpeculativeIndexInfo(), GetOperatorFromCompareType(), and IsIndexUsableForReplicaIdentityFull().
CompareType IndexAmTranslateStrategy | ( | StrategyNumber | strategy, |
Oid | amoid, | ||
Oid | opfamily, | ||
bool | missing_ok | ||
) |
Definition at line 118 of file amapi.c.
References IndexAmRoutine::amtranslatestrategy, COMPARE_INVALID, elog, ERROR, and GetIndexAmRoutineByAmId().