Fix use-after-release mistake in currtid() and currtid2() for views
authorMichael Paquier
Mon, 1 Jun 2020 05:41:25 +0000 (14:41 +0900)
committerMichael Paquier
Mon, 1 Jun 2020 05:41:25 +0000 (14:41 +0900)
commit894041eb262fa3c730db11bbd6a93798a905556c
tree5d30160dd599aacbd92252b7ca54a99a290f131d
parent95e389b3c2ea35ad60419f285fd5c1d0511142e7
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[email protected]
Backpatch-through: 9.5
src/backend/utils/adt/tid.c