pgsql: Fix use-after-release mistake in currtid() and currtid2() for vi

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix use-after-release mistake in currtid() and currtid2() for vi
Date: 2020-06-01 05:43:45
Message-ID: E1jfdEf-0003zQ-U0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix use-after-release mistake in currtid() and currtid2() for views

This issue has been present since the introduction of this code as of
a3519a2 from 2002, and has been found by buildfarm member prion that
uses RELCACHE_FORCE_RELEASE via the tests introduced recently in
e786be5.

Discussion: https://postgr.es/m/20200601022055.GB4121@paquier.xyz
Backpatch-through: 9.5

Branch
------
REL9_5_STABLE

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

Modified Files
--------------
src/backend/utils/adt/tid.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-06-01 06:17:09 Re: pgsql: Make install-tests target work with vpath builds
Previous Message Michael Paquier 2020-06-01 01:35:09 pgsql: Fix crashes with currtid() and currtid2()