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

Function recordExtensionMembership

src/bin/pg_dump/common.c:950–968  ·  view source on GitHub ↗

* recordExtensionMembership * Record that the object identified by the given catalog ID * belongs to the given extension */

Source from the content-addressed store, hash-verified

948 * belongs to the given extension
949 */
950void
951recordExtensionMembership(CatalogId catId, ExtensionInfo *ext)
952{
953 CatalogIdMapEntry *entry;
954 bool found;
955
956 /* CatalogId hash table must exist, if we have an ExtensionInfo */
957 Assert(catalogIdHash != NULL);
958
959 /* Add reference to CatalogId hash */
960 entry = catalogid_insert(catalogIdHash, catId, &found);
961 if (!found)
962 {
963 entry->dobj = NULL;
964 entry->ext = NULL;
965 }
966 Assert(entry->ext == NULL);
967 entry->ext = ext;
968}
969
970/*
971 * findOwningExtension

Callers 1

getExtensionMembershipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected