From 337ffcddbae15a3bde25b17dbb8a0832c597003f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 9 Oct 2004 23:13:22 +0000 Subject: 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. --- doc/src/sgml/runtime.sgml | 82 ++++++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 36 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index f6946a08e18..da1d0745470 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -568,8 +568,8 @@ SET ENABLE_SEQSCAN TO OFF; File Locations - - pgdata (string) + + data_directory (string) Specifies the directory to use for data storage. @@ -578,36 +578,45 @@ SET ENABLE_SEQSCAN TO OFF; - - hba_conf (string) + + config_file (string) - Specifies the file name to use for configuration of host-based - authentication (HBA). - This option can only be set at server start or in the - postgresql.conf file. + Specifies the main server configuration file + (customarily called postgresql.conf). + This option can only be set on the postmaster command line. - - ident_conf (string) + + hba_file (string) - Specifies the file name to use for configuration of + Specifies the configuration file for host-based authentication. + This option can only be set at server start. + + + + + + ident_file (string) + + + Specifies the configuration file for ident authentication. - This option can only be set at server start or in the - postgresql.conf file. + This option can only be set at server start. - - external_pidfile (string) + + external_pid_file (string) - Specifies the location of an additional postmaster - process-id (PID) file for use by server administration programs. + Specifies that the postmaster should create an + additional process-id (PID) file for use by server administration + programs. This option can only be set at server start. @@ -616,11 +625,10 @@ SET ENABLE_SEQSCAN TO OFF; In a default installation, none of the above options is set explicitly - in the postgresql.conf file. In this case, the + in the postgresql.conf file. Instead, the data directory is specified by the command-line - option or the PGDATA environment variable; there is no - default for it. The configuration files are all placed within the - data directory. + option or the PGDATA environment variable, and the + configuration files are all placed within the data directory. @@ -630,27 +638,29 @@ SET ENABLE_SEQSCAN TO OFF; when they are kept separate.) To do this, the command-line option or PGDATA environment variable must point to the directory containing the configuration files, - and the pgdata option is set in + and the data_directory option is set in postgresql.conf (or on the command line) to show - where the data directory is actually located. + where the data directory is actually located. Notice that + data_directory overrides for the location + of the data directory, but not for the location of the configuration + files. - If you wish, you can also make the - command-line option or PGDATA environment variable - point directly to the master configuration file (which then need not be - named postgresql.conf). The pgdata - option must be set to determine the data directory location. - The other configuration files will by default be sought - in the data directory. + If you wish, you can specify the configuration file names and locations + individually using the options config_file, + hba_file and/or ident_file. + config_file can only be specified on the + postmaster command line, but the others can be + set within the main configuration file. If all three options plus + data_directory are explicitly set, then it is not necessary + to specify or PGDATA. - With any of these approaches, you can specify the locations of the - secondary configuration files (pg_hba.conf and - pg_ident.conf) by setting hba_conf and/or - ident_conf in the master configuration file. These options - override the normal locations and names of the secondary files. + When setting any of these options, a relative path will be interpreted + with respect to the directory in which the postmaster + is started. -- cgit v1.2.3