Fix use-after-release issue with pg_identify_object_as_address()
authorMichael Paquier <michael@paquier.xyz>
Wed, 28 Apr 2021 02:58:43 +0000 (11:58 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 28 Apr 2021 02:58:43 +0000 (11:58 +0900)
commita928297bc6f135f299ded2888283e73a35f4ade8
tree38b21931884a8c64216ad3d386904fb09151d754
parentf3c4537876843bea9a9d35d9643d347750961848
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
src/backend/catalog/objectaddress.c