int num_temp_buffers = 1024;
char *cluster_name = "";
-char *data_directory;
char *ConfigFileName;
char *HbaFileName;
char *IdentFileName;
static char *log_timezone_string;
static char *timezone_abbreviations_string;
static char *XactIsoLevel_string;
+static char *data_directory;
static char *session_authorization_string;
static int max_function_args;
static int max_index_keys;
}
/*
- * Use data directory as reference path for PG_AUTOCONF_FILENAME and its
- * corresponding temporary file.
+ * PG_AUTOCONF_FILENAME and its corresponding temporary file are always in
+ * the data directory, so we can reference them by simple relative paths.
*/
- join_path_components(AutoConfFileName, data_directory, PG_AUTOCONF_FILENAME);
- canonicalize_path(AutoConfFileName);
+ snprintf(AutoConfFileName, sizeof(AutoConfFileName), "%s",
+ PG_AUTOCONF_FILENAME);
snprintf(AutoConfTmpFileName, sizeof(AutoConfTmpFileName), "%s.%s",
AutoConfFileName,
"tmp");
extern int num_temp_buffers;
extern char *cluster_name;
-extern char *data_directory;
extern char *ConfigFileName;
extern char *HbaFileName;
extern char *IdentFileName;