1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Change default of log_directory to 'log'

The previous default 'pg_log' might have indicated by its "pg_" prefix
that it is an internal system directory.  The new default is more in
line with the typical naming of directories with user-facing log files.
Together with the renaming of pg_clog and pg_xlog, this should clear up
that difference.

Author: Andreas Karlsson <andreas@proxel.se>
This commit is contained in:
Peter Eisentraut
2017-03-27 10:34:33 -04:00
parent a171f01501
commit 3371e4d9b1
6 changed files with 9 additions and 9 deletions

View File

@ -4363,8 +4363,8 @@ SELECT * FROM parent WHERE key = 2400;
find the logs currently in use by the instance. Here is an example of
this file's content:
<programlisting>
stderr pg_log/postgresql.log
csvlog pg_log/postgresql.csv
stderr log/postgresql.log
csvlog log/postgresql.csv
</programlisting>
<filename>current_logfiles</filename> is recreated when a new log file
@ -4466,7 +4466,7 @@ local0.* /var/log/postgresql
cluster data directory.
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
The default is <literal>pg_log</literal>.
The default is <literal>log</literal>.
</para>
</listitem>
</varlistentry>

View File

@ -262,7 +262,7 @@ CREATE FOREIGN TABLE pglog (
location text,
application_name text
) SERVER pglog
OPTIONS ( filename '/home/josh/9.1/data/pg_log/pglog.csv', format 'csv' );
OPTIONS ( filename '/home/josh/data/log/pglog.csv', format 'csv' );
</programlisting>
</para>