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

From Michael Paquier
Subject pgsql: Fix use-after-release mistake in currtid() and currtid2() for vi
Date
Msg-id E1jfdEf-0003zN-TZ@gemulon.postgresql.org
Whole thread Raw
List 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_6_STABLE

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

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


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix crashes with currtid() and currtid2()
Next
From: Michael Paquier
Date:
Subject: Re: pgsql: Make install-tests target work with vpath builds