pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix SxactGlobalXmin tracking.
Date: Thu, 09 May 2019 08:38:45 +0000
Message-ID: <E1hOeZh-0003dt-2t@gemulon.postgresql.org> (raw)

Fix SxactGlobalXmin tracking.

Commit bb16aba50 broke the code that maintains SxactGlobalXmin.  It
could get stuck when a well-timed READ ONLY transaction runs.  If
SxactGlobalXmin stops advancing, transactions on the
FinishedSerializableTransactions queue are never cleaned up, so
resources are effectively leaked.  Revert that hunk of the commit.

Also revert another similar hunk that was probably harmless, but
unnecessary and unjustified, relating to the DOOMED flag in case of
RO_SAFE early release.

Author: Thomas Munro
Reported-by: Tom Lane
Discussion: https://postgr.es/m/16170.1557251214%40sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/47a338cfcd67139a1f91892b080934fcfc3aea03

Modified Files
--------------
src/backend/storage/lmgr/predicate.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)



Message-ID: <E1hOeZh-0003dt-2t@gemulon.postgresql.org>
Permalink:  ../E1hOeZh-0003dt-2t@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hOeZh-0003dt-2t@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: tmunro@postgresql.org
  Subject: Re: pgsql: Fix SxactGlobalXmin tracking.
  In-Reply-To: <E1hOeZh-0003dt-2t@gemulon.postgresql.org>
  References: <E1hOeZh-0003dt-2t@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