pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Use group updates when setting transaction status in clog.
Date: Fri, 01 Sep 2017 15:46:46 +0000
Message-ID: <E1dno9e-0003Wc-W8@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Use group updates when setting transaction status in clog.

Commit 0e141c0fbb211bdd23783afa731e3eef95c9ad7a introduced a mechanism
to reduce contention on ProcArrayLock by having a single process clear
XIDs in the procArray on behalf of multiple processes, reducing the
need to hand the lock around.  A previous attempt to introduce a similar
mechanism for CLogControlLock in ccce90b398673d55b0387b3de66639b1b30d451b
crashed and burned, but the design problem which resulted in those
failures is believed to have been corrected in this version.

Amit Kapila, with some cosmetic changes by me.  See the previous commit
message for additional credits.

Discussion: http://postgr.es/m/CAA4eK1KudxzgWhuywY_X=yeSAhJMT4DwCjroV5Ay60xaeB2Eew@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/baaf272ac908ea27c09076e34f62c45fa7d1e448

Modified Files
--------------
doc/src/sgml/monitoring.sgml      |   6 +-
src/backend/access/transam/clog.c | 264 ++++++++++++++++++++++++++++++++++++--
src/backend/postmaster/pgstat.c   |   3 +
src/backend/storage/lmgr/proc.c   |   9 ++
src/include/pgstat.h              |   1 +
src/include/storage/proc.h        |  14 ++
6 files changed, 285 insertions(+), 12 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (2+ messages)

Message-ID: <E1dno9e-0003Wc-W8@gemulon.postgresql.org>
Permalink:  ../E1dno9e-0003Wc-W8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1dno9e-0003Wc-W8@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Use group updates when setting transaction status in clog.
  In-Reply-To: <E1dno9e-0003Wc-W8@gemulon.postgresql.org>
  References: <E1dno9e-0003Wc-W8@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox