From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Improve possible performance regression |
Date: | 2025-03-07 10:57:22 |
Message-ID: | E1tqVOM-001FIJ-1w@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://www.postgresql.org/message-id/flat/E1tngY6-0000UL-2n%40gemulon.postgresql.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7f24c0274385ea3d4c797cc2fd60d9a55f3a8d74
Modified Files
--------------
src/backend/utils/cache/lsyscache.c | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2025-03-07 11:05:53 | Re: pgsql: Generalize hash and ordering support in amapi |
Previous Message | Dean Rasheed | 2025-03-07 09:35:16 | pgsql: Allow casting between bytea and integer types. |