diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-09 23:13:22 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-09 23:13:22 +0000 |
commit | 337ffcddbae15a3bde25b17dbb8a0832c597003f (patch) | |
tree | 8901b4f89003a45b6a7ebf5fc1a75c6506dd3264 /src/include | |
parent | 0d069c53c3b01b37388473c123f0a78a09d7d3e5 (diff) | |
download | postgresql-337ffcddbae15a3bde25b17dbb8a0832c597003f.tar.gz postgresql-337ffcddbae15a3bde25b17dbb8a0832c597003f.zip |
Adjust configuration-files GUC behavior as per my recent proposal.
The vars are renamed to data_directory, config_file, hba_file, and
ident_file, and are guaranteed to be set to accurate absolute paths
during postmaster startup.
This commit does not yet do anything about hiding path values from
non-superusers.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/miscadmin.h | 3 | ||||
-rw-r--r-- | src/include/utils/guc.h | 9 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 4130bf14bd1..c09bfe33231 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.168 2004/09/06 23:55:34 tgl Exp $ + * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.169 2004/10/09 23:13:14 tgl Exp $ * * NOTES * some of the information in this file should be moved to other files. @@ -241,6 +241,7 @@ extern void InitializeSessionUserIdStandalone(void); extern void SetSessionAuthorization(AclId userid, bool is_superuser); extern void SetDataDir(const char *dir); +extern char *make_absolute_path(const char *path); /* in utils/misc/superuser.c */ extern bool superuser(void); /* current user is superuser */ diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h index 0639f19da90..38eba48aae6 100644 --- a/src/include/utils/guc.h +++ b/src/include/utils/guc.h @@ -7,7 +7,7 @@ * Copyright (c) 2000-2004, PostgreSQL Global Development Group * Written by Peter Eisentraut <peter_e@gmx.net>. * - * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.52 2004/10/08 01:36:36 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.53 2004/10/09 23:13:22 tgl Exp $ *-------------------------------------------------------------------- */ #ifndef GUC_H @@ -135,11 +135,10 @@ extern int log_min_messages; extern int client_min_messages; extern int log_min_duration_statement; -extern char *ConfigDir; extern char *ConfigFileName; -extern char *guc_hbafile; -extern char *guc_identfile; -extern char *external_pidfile; +extern char *HbaFileName; +extern char *IdentFileName; +extern char *external_pid_file; extern void SetConfigOption(const char *name, const char *value, |