pgsql: Move each SLRU's lwlocks to a separate tranche.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Move each SLRU's lwlocks to a separate tranche.
Date: 2015-11-12 19:59:54
Message-ID: E1Zwy2E-0003Rt-1O@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Move each SLRU's lwlocks to a separate tranche.

This makes it significantly easier to identify these lwlocks in
LWLOCK_STATS or Trace_lwlocks output. It's also arguably better
from a modularity standpoint, since lwlock.c no longer needs to
know anything about the LWLock needs of the higher-level SLRU
facility.

Ildus Kurbangaliev, reviewd by Álvaro Herrera and by me.

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/clog.c | 2 +-
src/backend/access/transam/commit_ts.c | 2 +-
src/backend/access/transam/multixact.c | 4 ++--
src/backend/access/transam/slru.c | 37 +++++++++++++++++++++-----------
src/backend/access/transam/subtrans.c | 2 +-
src/backend/commands/async.c | 2 +-
src/backend/storage/lmgr/lwlock.c | 23 --------------------
src/backend/storage/lmgr/predicate.c | 2 +-
src/include/access/slru.h | 10 ++++++++-
9 files changed, 41 insertions(+), 43 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2015-11-12 21:22:26 pgsql: vacuumdb: don't prompt for passwords over and over
Previous Message pgsql 2015-11-12 19:23:34 pgsql: Tag refs/tags/REL9_5_BETA2 was created

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-11-12 19:59:59 Re: [PATCH] Refactoring of LWLock tranches
Previous Message David G. Johnston 2015-11-12 19:52:12 Re: psql: add \pset true/false