pgsql: Cache opaque handle for GUC option to avoid repeasted lookups. - Mailing list pgsql-committers

From Jeff Davis
Subject pgsql: Cache opaque handle for GUC option to avoid repeasted lookups.
Date
Msg-id E1rBgaW-009FH6-A9@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pgsql: Optimize nbtree backward scan boundary cases.
Next
From: Nathan Bossart
Date:
Subject: pgsql: Micro-optimize JSONTYPE_NUMERIC code path in json.c.