Fix use-after-release issue with pg_identify_object_as_address()

Michael Paquier <michael@paquier.xyz>

Commit: f93f0b5b25068807051edb2f3510614b69bb79ff
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-04-28T02:58:08Z
Releases: 14.0
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