]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix use-after-release mistake in currtid() and currtid2() for views
authorMichael Paquier <michael@paquier.xyz>
Mon, 1 Jun 2020 05:41:42 +0000 (14:41 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 1 Jun 2020 05:41:42 +0000 (14:41 +0900)
commite2fa9732fddce05f9f0d3db3e3dc113b1ff1152d
tree626a80eafedf1bfa36561b9779b419cfcf8eee2a
parentb9f152d25a11e535975df971e536a2e27386179a
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
src/backend/utils/adt/tid.c