pgsql: Fix use-after-release issue with pg_identify_object_as_address()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix use-after-release issue with pg_identify_object_as_address()
Date: 2021-04-28 02:59:57
Message-ID: E1lbaQf-000270-TU@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/85a3e0be1e94b4e0e94d1480f43fe47ce7f68b62

Modified Files
--------------
src/backend/catalog/objectaddress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-04-28 03:21:10 Re: pgsql: Implement streaming mode in ReorderBuffer.
Previous Message Michael Paquier 2021-04-28 02:57:12 Re: pgsql: Fix pg_identify_object_as_address() with event triggers