From: | Jeff Davis <jdavis(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Cache opaque handle for GUC option to avoid repeasted lookups. |
Date: | 2023-12-08 19:32:40 |
Message-ID: | E1rBgaW-009FH6-A9@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Cache opaque handle for GUC option to avoid repeasted lookups.
When setting GUCs from proconfig, performance is important, and hash
lookups in the GUC table are significant.
Per suggestion from Robert Haas.
Discussion: https://postgr.es/m/CA+TgmoYpKxhR3HOD9syK2XwcAUVPa0+ba0XPnwWBcYxtKLkyxA@mail.gmail.com
Reviewed-by: John Naylor
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/867dd2dc8704e58636b8599f61ada3d83c7e6473
Modified Files
--------------
src/backend/utils/fmgr/fmgr.c | 31 +++++++++++++++++-----
src/backend/utils/misc/guc.c | 57 +++++++++++++++++++++++++++++++++++-----
src/include/utils/guc.h | 9 +++++++
src/tools/pgindent/typedefs.list | 1 +
4 files changed, 84 insertions(+), 14 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Nathan Bossart | 2023-12-08 19:41:40 | pgsql: Micro-optimize JSONTYPE_NUMERIC code path in json.c. |
Previous Message | Peter Geoghegan | 2023-12-08 19:05:40 | pgsql: Optimize nbtree backward scan boundary cases. |