public inbox for [email protected]  
help / color / mirror / Atom feed
From: Michael Paquier <[email protected]>
To: [email protected]
Subject: pgsql: Simplify code in objectaddress.c for some property graph objects
Date: Thu, 07 May 2026 01:28:10 +0000
Message-ID: <[email protected]> (raw)

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 <[email protected]>
Reviewed-by: Ashutosh Bapat <[email protected]>
Reviewed-by: Alex Guo <[email protected]>
Discussion: https://postgr.es/m/aej1DkLwhyZWmtxJ@bdtpg

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6827de95ee094f8a2cb892a40e6f154491e78496

Modified Files
--------------
src/backend/catalog/objectaddress.c | 28 ++++++----------------------
1 file changed, 6 insertions(+), 22 deletions(-)



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: Simplify code in objectaddress.c for some property graph objects
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox