diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-09-07 20:20:46 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-09-07 20:20:46 +0900 |
commit | d8df7ac5c04cd17bf13bd3123dcfcaf8007c6280 (patch) | |
tree | 417660608b8fec27f28d0939fe523ccf3e394dbc /src/backend/access/gist/gistbuild.c | |
parent | 51edc4ca54f826cfac012c7306eee479f07a5dc7 (diff) | |
download | postgresql-d8df7ac5c04cd17bf13bd3123dcfcaf8007c6280.tar.gz postgresql-d8df7ac5c04cd17bf13bd3123dcfcaf8007c6280.zip |
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
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions