55 elog(
ERROR,
"cache lookup failed for operator class %u", opclassoid);
58 opfamilyoid = classform->opcfamily;
59 opcintype = classform->opcintype;
60 opckeytype = classform->opckeytype;
62 opckeytype = opcintype;
63 opclassname =
NameStr(classform->opcname);
68 elog(
ERROR,
"cache lookup failed for operator family %u", opfamilyoid);
71 opfamilyname =
NameStr(familyform->opfname);
88 if (procform->amproclefttype != procform->amprocrighttype)
91 (
errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
92 errmsg(
"gin opfamily %s contains support procedure %s with cross-type registration",
102 if (procform->amproclefttype != opcintype)
106 switch (procform->amprocnum)
110 2, 2, opckeytype, opckeytype);
135 4, 4, opckeytype, opckeytype,
147 (
errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
148 errmsg(
"gin opfamily %s contains function %s with invalid support number %d",
151 procform->amprocnum)));
159 (
errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
160 errmsg(
"gin opfamily %s contains function %s with wrong signature for support number %d",
163 procform->amprocnum)));
175 if (oprform->amopstrategy < 1 || oprform->amopstrategy > 63)
178 (
errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
179 errmsg(
"gin opfamily %s contains operator %s with invalid strategy number %d",
182 oprform->amopstrategy)));
191 (
errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
192 errmsg(
"gin opfamily %s contains invalid ORDER BY specification for operator %s",
200 oprform->amoplefttype,
201 oprform->amoprighttype))
204 (
errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
205 errmsg(
"gin opfamily %s contains operator %s with wrong signature",
215 foreach(lc, grouplist)
220 if (thisgroup->
lefttype == opcintype &&
222 opclassgroup = thisgroup;
238 (opclassgroup->
functionset & (((uint64) 1) << i)) != 0)
245 (
errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
246 errmsg(
"gin opclass %s is missing support function %d",
255 (
errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
256 errmsg(
"gin opclass %s is missing support function %d or %d",
#define GIN_EXTRACTQUERY_PROC
FormData_pg_amproc * Form_pg_amproc
int errcode(int sqlerrcode)
#define GIN_TRICONSISTENT_PROC
char * format_operator(Oid operator_oid)
#define GIN_COMPARE_PARTIAL_PROC
#define OidIsValid(objectId)
#define SearchSysCache1(cacheId, key1)
void ReleaseCatCacheList(CatCList *list)
CatCTup * members[FLEXIBLE_ARRAY_MEMBER]
bool check_amproc_signature(Oid funcid, Oid restype, bool exact, int minargs, int maxargs,...)
#define ObjectIdGetDatum(X)
List * identify_opfamily_groups(CatCList *oprlist, CatCList *proclist)
bool ginvalidate(Oid opclassoid)
#define GIN_CONSISTENT_PROC
#define SearchSysCacheList1(cacheId, key1)
#define ereport(elevel, rest)
FormData_pg_opfamily * Form_pg_opfamily
void ReleaseSysCache(HeapTuple tuple)
char * format_procedure(Oid procedure_oid)
#define HeapTupleIsValid(tuple)
#define GIN_EXTRACTVALUE_PROC
bool check_amop_signature(Oid opno, Oid restype, Oid lefttype, Oid righttype)
int errmsg(const char *fmt,...)
FormData_pg_amop * Form_pg_amop
FormData_pg_opclass * Form_pg_opclass