MCPcopy Create free account
hub / github.com/apache/cloudberry / GetNewOidForResQueue

Function GetNewOidForResQueue

src/backend/catalog/oid_dispatch.c:1026–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024}
1025
1026Oid
1027GetNewOidForResQueue(Relation relation, Oid indexId, AttrNumber oidcolumn,
1028 char *rsqname)
1029{
1030 OidAssignment key;
1031
1032 Assert(RelationGetRelid(relation) == ResQueueRelationId);
1033 Assert(indexId == ResQueueOidIndexId);
1034 Assert(oidcolumn == Anum_pg_resqueue_oid);
1035
1036 memset(&key, 0, sizeof(OidAssignment));
1037 key.type = T_OidAssignment;
1038 key.objname = rsqname;
1039 return GetNewOrPreassignedOid(relation, indexId, oidcolumn, &key);
1040}
1041
1042Oid
1043GetNewOidForTag(Relation relation, Oid indexId, AttrNumber oidcolumn,

Callers 1

CreateQueueFunction · 0.85

Calls 1

GetNewOrPreassignedOidFunction · 0.85

Tested by

no test coverage detected