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

Function getSchemaData

src/bin/pg_dump/common.c:96–285  ·  view source on GitHub ↗

* getSchemaData * Collect information about all potentially dumpable objects */

Source from the content-addressed store, hash-verified

94 * Collect information about all potentially dumpable objects
95 */
96TableInfo *
97getSchemaData(Archive *fout, int *numTablesPtr)
98{
99 TableInfo *tblinfo;
100 ExtensionInfo *extinfo;
101 InhInfo *inhinfo;
102 int numTables;
103 int numTypes;
104 int numFuncs;
105 int numOperators;
106 int numCollations;
107 int numNamespaces;
108 int numExtensions;
109 int numPublications;
110 int numAggregates;
111 int numInherits;
112 int numRules;
113 int numProcLangs;
114 int numCasts;
115 int numTransforms;
116 int numAccessMethods;
117 int numOpclasses;
118 int numOpfamilies;
119 int numConversions;
120 int numTSParsers;
121 int numTSTemplates;
122 int numTSDicts;
123 int numTSConfigs;
124 int numForeignDataWrappers;
125 int numForeignServers;
126 int numDefaultACLs;
127 int numEventTriggers;
128
129 /* GPDB specific variables */
130 int numExtProtocols;
131
132 if (fout->dopt->binary_upgrade)
133 {
134 BinaryUpgradeInfo *binfo;
135
136 pg_log_info("identifying required binary upgrade calls");
137
138 binfo = getBinaryUpgradeObjects();
139 }
140
141 /*
142 * We must read extensions and extension membership info first, because
143 * extension membership needs to be consultable during decisions about
144 * whether other objects are to be dumped.
145 */
146 pg_log_info("reading extensions");
147 extinfo = getExtensions(fout, &numExtensions);
148
149 pg_log_info("identifying extension members");
150 getExtensionMembership(fout, extinfo, numExtensions);
151
152 pg_log_info("reading schemas");
153 (void) getNamespaces(fout, &numNamespaces);

Callers 1

mainFunction · 0.85

Calls 15

getBinaryUpgradeObjectsFunction · 0.85
getExtensionsFunction · 0.85
getExtensionMembershipFunction · 0.85
getNamespacesFunction · 0.85
getTablesFunction · 0.85
getOwnedSeqsFunction · 0.85
getFuncsFunction · 0.85
getTypesFunction · 0.85
getProcLangsFunction · 0.85
getAggregatesFunction · 0.85
getOperatorsFunction · 0.85
getExtProtocolsFunction · 0.85

Tested by

no test coverage detected