From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix GetNewTransactionId()'s interaction with xidVacLimit. |
Date: | 2019-04-12 05:03:09 |
Message-ID: | E1hEoLF-0005sG-Rb@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2019-04-12 06:43:11 | pgsql: Fix REINDEX CONCURRENTLY of partitions |
Previous Message | Michael Paquier | 2019-04-12 03:59:44 | pgsql: Fix typos in reloptions.c |