Update hypopg_index.cpp

This commit is contained in:
bjyb 2023-09-18 10:06:53 +08:00
parent 705c19c73d
commit 8269dc065f
1 changed files with 3 additions and 3 deletions

View File

@ -610,7 +610,7 @@ static void hypo_process_attr(IndexStmt *node, hypoIndex *volatile entry, String
int attn;
attn = 0;
foreach (lc, node->indexParams) {
foreach (lc, node->indexParams) { /*Traverse all nodes*/
IndexElem *attribute = (IndexElem *)lfirst(lc);
Oid atttype = InvalidOid;
Oid opclass;
@ -805,7 +805,7 @@ static const hypoIndex *hypo_index_store_parsetree(IndexStmt *node, const char *
if (nkeycolumns > INDEX_MAX_KEYS) {
elog(ERROR, "hypopg: cannot use more thant %d columns in an index", INDEX_MAX_KEYS);
}
//Show basic attributes
initStringInfo(&indexRelationName);
appendStringInfoString(&indexRelationName, node->accessMethod);
appendStringInfoString(&indexRelationName, "_");
@ -876,7 +876,7 @@ static const hypoIndex *hypo_index_store_parsetree(IndexStmt *node, const char *
pull_varattnos((Node *)entry->indexprs, 1, &indexattrs);
pull_varattnos((Node *)entry->indpred, 1, &indexattrs);
for (i = FirstLowInvalidHeapAttributeNumber + 1; i < 0; i++) {
for (i = FirstLowInvalidHeapAttributeNumber + 1; i < 0; i++) { //I is a negative number
if (i != ObjectIdAttributeNumber && bms_is_member(i - FirstLowInvalidHeapAttributeNumber, indexattrs)) {
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("hypopg: index creation on system columns is not supported")));