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 GetNewTransactionId()'s interaction with xidVacLimit.
Date: Fri, 12 Apr 2019 05:03:09 +0000
Message-ID: <E1hEoLF-0005sG-Rb@gemulon.postgresql.org> (raw)

Fix GetNewTransactionId()'s interaction with xidVacLimit.

Commit ad308058 switched to returning a FullTransactionId, but
failed to load the potentially updated value in the case where
xidVacLimit is reached and we release and reacquire the lock.
Repair, closing bug #15727.

While reviewing that commit, also fix the size computation used
by EstimateTransactionStateSize() and switch to the mul_size()
macro traditionally used in such expressions.

Author: Thomas Munro
Reported-by: Roman Zharkov
Discussion: https://postgr.es/m/15727-0be246e7d852d229%40postgresql.org

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/varsup.c | 3 ++-
src/backend/access/transam/xact.c   | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)



Message-ID: <E1hEoLF-0005sG-Rb@gemulon.postgresql.org>
Permalink:  ../E1hEoLF-0005sG-Rb@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hEoLF-0005sG-Rb@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 GetNewTransactionId()'s interaction with xidVacLimit.
  In-Reply-To: <E1hEoLF-0005sG-Rb@gemulon.postgresql.org>
  References: <E1hEoLF-0005sG-Rb@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