pgsql: Remove unnecessary "head" arguments from some dlist/slist functi - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Remove unnecessary "head" arguments from some dlist/slist functi
Date
Msg-id E1TOz8h-0000pW-9V@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Code review for inline-list patch.
Next
From: Tom Lane
Date:
Subject: pgsql: Further cleanup of catcache.c ilist changes.