Обсуждение: pgsql: Cache opaque handle for GUC option to avoid repeasted lookups.

Поиск
Список
Период
Сортировка

pgsql: Cache opaque handle for GUC option to avoid repeasted lookups.

От
Jeff Davis
Дата:
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(-)