Fix use-after-release issue with pg_identify_object_as_address()

Michael Paquier <michael@paquier.xyz>

Commit: b797918d27cc532b4835d87c676de34d4b9ee9bd
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-04-28T02:58:55Z
Releases: 10.17
Fix use-after-release issue with pg_identify_object_as_address()

Spotted by buildfarm member prion, with -DRELCACHE_FORCE_RELEASE.

Introduced in f7aab36.

Discussion: https://postgr.es/m/2759018.1619577848@sss.pgh.pa.us
Backpatch-through: 9.6

Files

PathChange+/−
src/backend/catalog/objectaddress.c modified +1 −1

Discussion

Cited messages not in the archive: 2759018.1619577848@sss.pgh.pa.us