20 #include "utils/fmgrprotos.h"
42 elog(
ERROR,
"index access method handler function %u did not return an IndexAmRoutine struct",
68 elog(
ERROR,
"cache lookup failed for access method %u",
74 if (amform->amtype != AMTYPE_INDEX)
82 (
errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
83 errmsg(
"access method \"%s\" is not of type %s",
84 NameStr(amform->amname),
"INDEX")));
87 amhandler = amform->amhandler;
98 (
errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
99 errmsg(
"index access method \"%s\" does not have a handler",
125 elog(
ERROR,
"cache lookup failed for operator class %u", opclassoid);
128 amoid = classform->opcmethod;
135 elog(
ERROR,
"function amvalidate is not defined for index access method %u",
IndexAmRoutine * GetIndexAmRoutineByAmId(Oid amoid, bool noerror)
IndexAmRoutine * GetIndexAmRoutine(Oid amhandler)
Datum amvalidate(PG_FUNCTION_ARGS)
#define RegProcedureIsValid(p)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define OidFunctionCall0(functionId)
#define PG_RETURN_BOOL(x)
#define HeapTupleIsValid(tuple)
void pfree(void *pointer)
#define IsA(nodeptr, _type_)
FormData_pg_am * Form_pg_am
FormData_pg_opclass * Form_pg_opclass
static Datum ObjectIdGetDatum(Oid X)
static Pointer DatumGetPointer(Datum X)
amvalidate_function amvalidate
void ReleaseSysCache(HeapTuple tuple)
HeapTuple SearchSysCache1(int cacheId, Datum key1)