REINDEX CONCURRENTLY

This commit is contained in:
jiajunchang
2022-08-04 20:22:04 +08:00
parent 111ff9efc3
commit c5b915a5e6
29 changed files with 3509 additions and 248 deletions

View File

@ -7842,6 +7842,24 @@ bool RelationIsCUFormatByOid(Oid relid)
return rs;
}
bool RelationIsUStoreFormatByOid(Oid relid)
{
bool rs = false;
Relation rel;
if (!OidIsValid(relid))
return false;
rel = try_relation_open(relid, AccessShareLock);
if (NULL == rel)
return false;
rs = RelationIsUstoreFormat(rel);
relation_close(rel, AccessShareLock);
return rs;
}
#ifdef ENABLE_MOT
/*
* Brief : check whether the relation is MOT table.