summaryrefslogtreecommitdiff
path: root/src/include/utils/guc.h
diff options
context:
space:
mode:
authorJeff Davis2023-08-10 19:43:53 +0000
committerJeff Davis2023-08-10 19:43:53 +0000
commit5765cfe18c595b5d8a7df3a62d253f60a00718ce (patch)
tree10c9845c3c3b5ba873800a008b574f091d65dc98 /src/include/utils/guc.h
parentbee263b0878cacec5e3d888ab666000edc3219de (diff)
Transform proconfig for faster execution.
Store function config settings in lists to avoid the need to parse and allocate for each function execution. Speedup is modest but significant. Additionally, this change also seems cleaner and supports some other performance improvements under discussion. Discussion: https://postgr.es/m/[email protected] Reviewed-by: Nathan Bossart
Diffstat (limited to 'src/include/utils/guc.h')
-rw-r--r--src/include/utils/guc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h
index 223a19f80d8..e89083ee0e6 100644
--- a/src/include/utils/guc.h
+++ b/src/include/utils/guc.h
@@ -391,6 +391,8 @@ extern void AlterSystemSetConfigFile(AlterSystemStmt *altersysstmt);
extern char *GetConfigOptionByName(const char *name, const char **varname,
bool missing_ok);
+extern void TransformGUCArray(ArrayType *array, List **configNames,
+ List **configValues);
extern void ProcessGUCArray(ArrayType *array,
GucContext context, GucSource source, GucAction action);
extern ArrayType *GUCArrayAdd(ArrayType *array, const char *name, const char *value);