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
find the logs currently in use by the instance. Here is an example of
this file's content:
-stderr pg_log/postgresql.log
-csvlog pg_log/postgresql.csv
+stderr log/postgresql.log
+csvlog log/postgresql.csv
current_logfiles is recreated when a new log file
cluster data directory.
This parameter can only be set in the postgresql.conf>
file or on the server command line.
- The default is pg_log.
+ The default is log.
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' );
GUC_SUPERUSER_ONLY
},
&Log_directory,
- "pg_log",
+ "log",
check_canonical_path, NULL, NULL
},
{
# (change requires restart)
# These are only used if logging_collector is on:
-#log_directory = 'pg_log' # directory where log files are written,
+#log_directory = 'log' # directory where log files are written,
# can be absolute or relative to PGDATA
#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
# can include strftime() escapes
$backup_path,
filterfn => sub {
my $src = shift;
- return ($src ne 'pg_log' and $src ne 'postmaster.pid');
+ return ($src ne 'log' and $src ne 'postmaster.pid');
});
if ($hot)
RecursiveCopy::copypath('/some/path', '/empty/dir',
filterfn => sub {
- # omit pg_log and contents
+ # omit log/ and contents
my $src = shift;
- return $src ne 'pg_log';
+ return $src ne 'log';
}
);