* getSchemaData * Collect information about all potentially dumpable objects */
| 94 | * Collect information about all potentially dumpable objects |
| 95 | */ |
| 96 | TableInfo * |
| 97 | getSchemaData(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); |
no test coverage detected