Fix use-after-release issue with pg_identify_object_as_address()

Michael Paquier <michael@paquier.xyz>

Commit: 669f736666b394a2dadd4ab20ed0de4b81d5f146
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-04-28T02:58:50Z
Releases: 11.12
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