From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Update extension lookup routines to use the syscache
Date: Sat, 07 Sep 2024 11:21:03 +0000
Message-ID: <E1smtV0-000XDK-8q@gemulon.postgresql.org> (raw)
Update extension lookup routines to use the syscache
The following routines are changed to use the syscache entries added for
pg_extension in 490f869d92e5:
- get_extension_oid()
- get_extension_name()
- get_extension_schema()
A catalog scan is costly and could easily lead to a noticeable
performance impact when called once or more per query, so this is going
to be helpful for developers for extension data lookups.
Author: Andrei Lepikhov
Reviewed-by: Jelte Fennema-Nio
Discussion: https://postgr.es/m/529295b2-6ba9-4dae-acd1-20a9c6fb8f9a@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d8df7ac5c04cd17bf13bd3123dcfcaf8007c6280
Modified Files
--------------
src/backend/commands/extension.c | 82 +++++++---------------------------------
1 file changed, 13 insertions(+), 69 deletions(-)
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: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Update extension lookup routines to use the syscache
In-Reply-To: <E1smtV0-000XDK-8q@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox