| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Remove unnecessary "head" arguments from some dlist/slist functi |
| Date: | 2012-10-18 23:04:31 |
| Message-ID: | E1TOz8h-0000pW-9V@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2012-10-18 23:30:52 | pgsql: Further cleanup of catcache.c ilist changes. |
| Previous Message | Tom Lane | 2012-10-18 20:47:12 | pgsql: Code review for inline-list patch. |