* InitCatalogCachePhase2 - finish initializing the caches * * Finish initializing all the caches, including necessary database * access. * * This is *not* essential; normally we allow syscaches to be initialized * on first use. However, it is useful as a mechanism to preload the * relcache with entries for the most-commonly-used system catalogs. * Therefore, we invoke this routine when we
| 1312 | * init file. |
| 1313 | */ |
| 1314 | void |
| 1315 | InitCatalogCachePhase2(void) |
| 1316 | { |
| 1317 | int cacheId; |
| 1318 | |
| 1319 | Assert(CacheInitialized); |
| 1320 | |
| 1321 | for (cacheId = 0; cacheId < SysCacheSize; cacheId++) |
| 1322 | InitCatCachePhase2(SysCache[cacheId], true); |
| 1323 | } |
| 1324 | |
| 1325 | |
| 1326 | /* |
no test coverage detected