]> granicus.if.org Git - postgresql/commit
Fix access to just-closed relcache entry.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Jun 2018 23:17:50 +0000 (19:17 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Jun 2018 23:18:04 +0000 (19:18 -0400)
commitbdc643e5e46f84d55d989980e4ff5f8e2da103c6
tree682b3def57cb380cc965d0845ff927b0737d13c9
parentf8795d2ec8632a7242896e0f8322d13bfe922512
Fix access to just-closed relcache entry.

It might be impossible for this to cause a problem in non-debug builds,
since there'd be no opportunity for the relcache entry to get recycled
before the fetch.  It blows up nicely with -DRELCACHE_FORCE_RELEASE plus
valgrind, though.

Evidently introduced by careless refactoring in commit f0e44751d.
Back-patch accordingly.

Discussion: https://postgr.es/m/27543.1528758304@sss.pgh.pa.us
src/backend/commands/tablecmds.c