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

Michael Paquier <michael@paquier.xyz>

Commit: a36f216209b818a28d7597966032cc3dce6acfa2
Author: Michael Paquier <michael@paquier.xyz>
Date: 2020-06-01T05:41:37Z
Releases: 10.14
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

Files

PathChange+/−
src/backend/utils/adt/tid.c modified +6 −1

Discussion