Remove unnecessary "head" arguments from some dlist/slist functions.
Tom Lane <tgl@sss.pgh.pa.us>
Remove unnecessary "head" arguments from some dlist/slist functions. dlist_delete, dlist_insert_after, dlist_insert_before, slist_insert_after do not need access to the list header, and indeed insisting on that negates one of the main advantages of a doubly-linked list. In consequence, revert addition of "cache_bucket" field to CatCTup.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/autovacuum.c | modified | +10 −7 |
| src/backend/postmaster/postmaster.c | modified | +2 −2 |
| src/backend/utils/cache/catcache.c | modified | +3 −5 |
| src/include/lib/ilist.h | modified | +12 −33 |
| src/include/utils/catcache.h | modified | +0 −1 |