pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Restore lock level to update statusFlags
Date: Thu, 26 Nov 2020 15:38:27 +0000
Message-ID: <E1kiJLn-00034P-7b@gemulon.postgresql.org> (raw)

Restore lock level to update statusFlags

Reverts 27838981be9d (some comments are kept).  Per discussion, it does
not seem safe to relax the lock level used for this; in order for it to
be safe, there would have to be memory barriers between the point we set
the flag and the point we set the trasaction Xid, which perhaps would
not be so bad; but there would also have to be barriers at the readers'
side, which from a performance perspective might be bad.

Now maybe this analysis is wrong and it *is* safe for some reason, but
proof of that is not trivial.

Discussion: https://postgr.es/m/20201118190928.vnztes7c2sldu43a@alap3.anarazel.de

Branch
------
master

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

Modified Files
--------------
src/backend/commands/vacuum.c             | 20 +++++++++++---------
src/backend/replication/logical/logical.c |  2 +-
src/backend/storage/ipc/procarray.c       |  8 +++-----
src/include/storage/proc.h                |  6 +++---
4 files changed, 18 insertions(+), 18 deletions(-)



Message-ID: <E1kiJLn-00034P-7b@gemulon.postgresql.org>
Permalink:  ../E1kiJLn-00034P-7b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kiJLn-00034P-7b@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Restore lock level to update statusFlags
  In-Reply-To: <E1kiJLn-00034P-7b@gemulon.postgresql.org>
  References: <E1kiJLn-00034P-7b@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