Thread: pgsql: Remove unnecessary "head" arguments from some dlist/slist functi

pgsql: Remove unnecessary "head" arguments from some dlist/slist functi

From
Tom Lane
Date:
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/dc5aeca168629183e64087b1147d3c2645e49ddc

Modified Files
--------------
src/backend/postmaster/autovacuum.c |   17 +++++++-----
src/backend/postmaster/postmaster.c |    4 +-
src/backend/utils/cache/catcache.c  |    8 ++----
src/include/lib/ilist.h             |   45 +++++++++-------------------------
src/include/utils/catcache.h        |    1 -
5 files changed, 27 insertions(+), 48 deletions(-)