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",
#define IsA(nodeptr, _type_)
int errcode(int sqlerrcode)
amvalidate_function amvalidate
void pfree(void *pointer)
#define ObjectIdGetDatum(X)
Datum amvalidate(PG_FUNCTION_ARGS)
IndexAmRoutine * GetIndexAmRoutineByAmId(Oid amoid, bool noerror)
IndexAmRoutine * GetIndexAmRoutine(Oid amhandler)
#define RegProcedureIsValid(p)
HeapTuple SearchSysCache1(int cacheId, Datum key1)
#define PG_RETURN_BOOL(x)
void ReleaseSysCache(HeapTuple tuple)
#define ereport(elevel,...)
#define OidFunctionCall0(functionId)
#define HeapTupleIsValid(tuple)
#define DatumGetPointer(X)
FormData_pg_am * Form_pg_am
int errmsg(const char *fmt,...)
FormData_pg_opclass * Form_pg_opclass