1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

Document that PGDATA has to point to the configuration files, rather

than the actual data storage directory.

Per suggestion from Thom Brown
This commit is contained in:
Bruce Momjian 2012-08-15 22:59:37 -04:00
parent 6ff55ebe3d
commit 077908aed7
3 changed files with 6 additions and 5 deletions

View File

@ -261,7 +261,7 @@ PostgreSQL documentation
<term><option>--pgdata <replaceable class="parameter">datadir</replaceable></option></term> <term><option>--pgdata <replaceable class="parameter">datadir</replaceable></option></term>
<listitem> <listitem>
<para> <para>
Specifies the file system location of the database files. If Specifies the file system location of the database configuration files. If
this is omitted, the environment variable this is omitted, the environment variable
<envar>PGDATA</envar> is used. <envar>PGDATA</envar> is used.
</para> </para>

View File

@ -179,8 +179,8 @@ PostgreSQL documentation
<term><option>-D <replaceable class="parameter">datadir</replaceable></option></term> <term><option>-D <replaceable class="parameter">datadir</replaceable></option></term>
<listitem> <listitem>
<para> <para>
Specifies the file system location of the data directory or Specifies the file system location of the database
configuration file(s). See configuration files. See
<xref linkend="runtime-config-file-locations"> for details. <xref linkend="runtime-config-file-locations"> for details.
</para> </para>
</listitem> </listitem>

View File

@ -19,7 +19,8 @@ directories.
</para> </para>
<para> <para>
All the data needed for a database cluster is stored within the cluster's data Traditionally, the configuration and data files used by a database
cluster are stored together within the cluster's data
directory, commonly referred to as <varname>PGDATA</> (after the name of the directory, commonly referred to as <varname>PGDATA</> (after the name of the
environment variable that can be used to define it). A common location for environment variable that can be used to define it). A common location for
<varname>PGDATA</> is <filename>/var/lib/pgsql/data</>. Multiple clusters, <varname>PGDATA</> is <filename>/var/lib/pgsql/data</>. Multiple clusters,
@ -33,7 +34,7 @@ these required items, the cluster configuration files
<filename>postgresql.conf</filename>, <filename>pg_hba.conf</filename>, and <filename>postgresql.conf</filename>, <filename>pg_hba.conf</filename>, and
<filename>pg_ident.conf</filename> are traditionally stored in <filename>pg_ident.conf</filename> are traditionally stored in
<varname>PGDATA</> (although in <productname>PostgreSQL</productname> 8.0 and <varname>PGDATA</> (although in <productname>PostgreSQL</productname> 8.0 and
later, it is possible to keep them elsewhere). later, it is possible to place them elsewhere).
</para> </para>
<table tocentry="1" id="pgdata-contents-table"> <table tocentry="1" id="pgdata-contents-table">