Remove a couple of unnecessary calls of CreateCacheMemoryContext. These
Tom Lane <tgl@sss.pgh.pa.us>
Remove a couple of unnecessary calls of CreateCacheMemoryContext. These probably got there via blind copy-and-paste from one of the legitimate callers, so rearrange and comment that code a bit to make it clearer that this isn't a necessary prerequisite to hash_create. Per observation from Robert Haas.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/util/predtest.c | modified | +1 −4 |
| src/backend/parser/parse_oper.c | modified | +1 −4 |
| src/backend/utils/cache/relcache.c | modified | +6 −10 |
| src/backend/utils/cache/ts_cache.c | modified | +13 −11 |
| src/backend/utils/cache/typcache.c | modified | +11 −9 |