1/*-------------------------------------------------------------------------
4 * Displays available options under grand unified configuration scheme
6 * Options whose flag bits are set to GUC_NO_SHOW_ALL, GUC_NOT_IN_SAMPLE,
7 * or GUC_DISALLOW_IN_FILE are not displayed, unless the user specifically
8 * requests that variable by name
10 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
13 * src/backend/utils/misc/help_config.c
15 *-------------------------------------------------------------------------
27 * This union allows us to mix the numerous different types of structs
28 * that we are organizing.
52 /* Initialize the GUC hash table */
57 for (
i = 0;
i < numOpts;
i++)
70 * This function will return true if the struct passed to it
71 * should be displayed to the user.
83 * This function prints out the generic struct passed to it. It will print out
84 * a different format, depending on what the user wants to see.
98 printf(
"BOOLEAN\t%s\t\t\t",
104 printf(
"INTEGER\t%d\t%d\t%d\t",
111 printf(
"REAL\t%g\t%g\t%g\t",
118 printf(
"STRING\t%s\t\t\t",
129 write_stderr(
"internal error: unrecognized run-time parameter type\n");
#define write_stderr(str)
struct config_generic ** get_guc_variables(int *num_vars)
const char * config_enum_lookup_by_value(struct config_enum *record, int val)
void build_guc_variables(void)
#define GUC_DISALLOW_IN_FILE
#define GUC_NOT_IN_SAMPLE
const char *const GucContext_Names[]
const char *const config_group_names[]
static void printMixedStruct(mixedStruct *structToPrint)
static bool displayStruct(mixedStruct *structToDisplay)
struct config_int integer
struct config_generic generic
struct config_string string