PostgreSQL Source Code  git master
help_config.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void GucInfoMain (void) pg_attribute_noreturn()
 

Function Documentation

◆ GucInfoMain()

void GucInfoMain ( void  )

Definition at line 46 of file help_config.c.

References build_guc_variables(), displayStruct(), get_guc_variables(), GetNumConfigOptions(), i, and printMixedStruct().

Referenced by main().

47 {
48  struct config_generic **guc_vars;
49  int numOpts,
50  i;
51 
52  /* Initialize the guc_variables[] array */
54 
55  guc_vars = get_guc_variables();
56  numOpts = GetNumConfigOptions();
57 
58  for (i = 0; i < numOpts; i++)
59  {
60  mixedStruct *var = (mixedStruct *) guc_vars[i];
61 
62  if (displayStruct(var))
63  printMixedStruct(var);
64  }
65 
66  exit(0);
67 }
void build_guc_variables(void)
Definition: guc.c:5068
static bool displayStruct(mixedStruct *structToDisplay)
Definition: help_config.c:75
struct config_generic ** get_guc_variables(void)
Definition: guc.c:5056
static void printMixedStruct(mixedStruct *structToPrint)
Definition: help_config.c:88
int i
int GetNumConfigOptions(void)
Definition: guc.c:9457