Repair problem exposed by Jan's new parallel-regression-test scaffold:
Tom Lane <tgl@sss.pgh.pa.us>
Repair problem exposed by Jan's new parallel-regression-test scaffold: inval.c thought it could safely use the catcache to look up the OIDs of system relations. Not good, considering that inval.c could be called during catcache loading, if a shared-inval message arrives. Rip out the lookup logic and instead use the known OIDs from pg_class.h.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/cache/catcache.c | modified | +2 −14 |
| src/backend/utils/cache/inval.c | modified | +47 −85 |
| src/backend/utils/cache/relcache.c | modified | +9 −17 |
| src/backend/utils/init/postinit.c | modified | +1 −7 |
| src/include/utils/inval.h | modified | +1 −23 |
| src/include/utils/relcache.h | modified | +1 −3 |