]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Simplify code in objectaddress.c for some property graph objects
authorMichael Paquier <michael@paquier.xyz>
Thu, 7 May 2026 01:18:49 +0000 (10:18 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 7 May 2026 01:18:49 +0000 (10:18 +0900)
commit6827de95ee094f8a2cb892a40e6f154491e78496
tree51e51054609a0d6e1096b75bb2bf96f6751a5247
parent5cdec423193cb99b502816197395637120256f0d
Simplify code in objectaddress.c for some property graph objects

Property graph element labels and label properties relied on a direct
systable scan when retrieving their object descriptions.  These can be
simplified with get_catalog_object_by_oid().  This offers the benefit to
do a direct syscache lookup, if available.

The same logic will be used in a follow-up patch when retrieving the
object identity parts, applying the same rule across the board for these
object types.

Extracted from a larger patch by the author.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Alex Guo <guo.alex.hengchen@gmail.com>
Discussion: https://postgr.es/m/aej1DkLwhyZWmtxJ@bdtpg
src/backend/catalog/objectaddress.c