Replace SearchSysCacheGetAttribute with SysCacheGetAttr, which fetches
Tom Lane <tgl@sss.pgh.pa.us>
Replace SearchSysCacheGetAttribute with SysCacheGetAttr, which fetches an attribute of a tuple previously fetched with SearchSysCacheTuple. This avoids a lot of redundant cache lookups, particularly in selfuncs.c. Also, remove SearchSysCacheStruct, which was unused and grotty.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/selfuncs.c | modified | +19 −29 |
| src/backend/utils/cache/fcache.c | modified | +33 −52 |
| src/backend/utils/cache/lsyscache.c | modified | +20 −24 |
| src/backend/utils/cache/syscache.c | modified | +31 −129 |
| src/include/utils/syscache.h | modified | +4 −6 |