Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 077908a

Browse files
committed
Document that PGDATA has to point to the configuration files, rather
than the actual data storage directory. Per suggestion from Thom Brown
1 parent 6ff55eb commit 077908a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

doc/src/sgml/ref/pg_ctl-ref.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ PostgreSQL documentation
261261
<term><option>--pgdata <replaceable class="parameter">datadir</replaceable></option></term>
262262
<listitem>
263263
<para>
264-
Specifies the file system location of the database files. If
264+
Specifies the file system location of the database configuration files. If
265265
this is omitted, the environment variable
266266
<envar>PGDATA</envar> is used.
267267
</para>

doc/src/sgml/ref/postgres-ref.sgml

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ PostgreSQL documentation
179179
<term><option>-D <replaceable class="parameter">datadir</replaceable></option></term>
180180
<listitem>
181181
<para>
182-
Specifies the file system location of the data directory or
183-
configuration file(s). See
182+
Specifies the file system location of the database
183+
configuration files. See
184184
<xref linkend="runtime-config-file-locations"> for details.
185185
</para>
186186
</listitem>

doc/src/sgml/storage.sgml

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ directories.
1919
</para>
2020

2121
<para>
22-
All the data needed for a database cluster is stored within the cluster's data
22+
Traditionally, the configuration and data files used by a database
23+
cluster are stored together within the cluster's data
2324
directory, commonly referred to as <varname>PGDATA</> (after the name of the
2425
environment variable that can be used to define it). A common location for
2526
<varname>PGDATA</> is <filename>/var/lib/pgsql/data</>. Multiple clusters,
@@ -33,7 +34,7 @@ these required items, the cluster configuration files
3334
<filename>postgresql.conf</filename>, <filename>pg_hba.conf</filename>, and
3435
<filename>pg_ident.conf</filename> are traditionally stored in
3536
<varname>PGDATA</> (although in <productname>PostgreSQL</productname> 8.0 and
36-
later, it is possible to keep them elsewhere).
37+
later, it is possible to place them elsewhere).
3738
</para>
3839

3940
<table tocentry="1" id="pgdata-contents-table">

0 commit comments

Comments
 (0)