pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Cache opaque handle for GUC option to avoid repeasted lookups.
Date: Fri, 08 Dec 2023 19:32:40 +0000
Message-ID: <E1rBgaW-009FH6-A9@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1rBgaW-009FH6-A9@gemulon.postgresql.org>
Permalink:  ../E1rBgaW-009FH6-A9@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rBgaW-009FH6-A9@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Cache opaque handle for GUC option to avoid repeasted lookups.
  In-Reply-To: <E1rBgaW-009FH6-A9@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox