git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: af4002b) | patch
Improve possible performance regression
Fri, 7 Mar 2025 10:20:26 +0000 (11:20 +0100)
Fri, 7 Mar 2025 10:46:33 +0000 (11:46 +0100)
commit 7f24c0274385ea3d4c797cc2fd60d9a55f3a8d74
Improve possible performance regression

Commit ce62f2f2a0a introduced calls to GetIndexAmRoutineByAmId() in
lsyscache.c functions. This call is a bit more expensive than a
simple syscache lookup. So rearrange the nesting so that we call that
one last and do the cheaper checks first.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/E1tngY6-0000UL-2n%40gemulon.postgresql.org
src/backend/utils/cache/lsyscache.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /