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) |
Datum | amvalidate (PG_FUNCTION_ARGS) |
Datum amvalidate | ( | PG_FUNCTION_ARGS | ) |
Definition at line 114 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(), ConstructTupleDescriptor(), DefineOpClass(), indexam_property(), IndexSupportsBackwardScan(), IsIndexUsableForReplicaIdentityFull(), and pg_indexam_progress_phasename().