Rename "pg_xlog" directory to "pg_wal".
authorRobert Haas <rhaas@postgresql.org>
Thu, 20 Oct 2016 15:24:37 +0000 (11:24 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 20 Oct 2016 15:32:18 +0000 (11:32 -0400)
commitf82ec32ac30ae7e3ec7c84067192535b2ff8ec0e
tree929d4709a42149a4bbde12edad16183a96bcef6a
parentec7db2b483e0ff247ed41612cdb5716022401fe6
Rename "pg_xlog" directory to "pg_wal".

"xlog" is not a particularly clear abbreviation for "write-ahead log",
and it sometimes confuses users into believe that the contents of the
"pg_xlog" directory are not critical data, leading to unpleasant
consequences.  So, rename the directory to "pg_wal".

This patch modifies pg_upgrade and pg_basebackup to understand both
the old and new directory layouts; the former is necessary given the
purpose of the tool, while the latter merely avoids an unnecessary
backward-compatibility break.

We may wish to consider renaming other programs, switches, and
functions which still use the old "xlog" naming to also refer to
"wal".  However, that's still under discussion, so let's do just this
much for now.

Discussion: CAB7nPqTeC-8+zux8_-4ZD46V7YPwooeFxgndfsq5Rg8ibLVm1A@mail.gmail.com

Michael Paquier
37 files changed:
doc/src/sgml/backup.sgml
doc/src/sgml/config.sgml
doc/src/sgml/func.sgml
doc/src/sgml/high-availability.sgml
doc/src/sgml/perform.sgml
doc/src/sgml/protocol.sgml
doc/src/sgml/ref/pg_resetxlog.sgml
doc/src/sgml/ref/pg_rewind.sgml
doc/src/sgml/ref/pg_xlogdump.sgml
doc/src/sgml/ref/pgtestfsync.sgml
doc/src/sgml/ref/pgupgrade.sgml
doc/src/sgml/storage.sgml
doc/src/sgml/wal.sgml
src/backend/access/transam/timeline.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogarchive.c
src/backend/access/transam/xlogfuncs.c
src/backend/replication/README
src/backend/replication/basebackup.c
src/backend/replication/walreceiver.c
src/backend/replication/walsender.c
src/backend/storage/file/fd.c
src/bin/initdb/initdb.c
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/t/010_pg_basebackup.pl
src/bin/pg_resetxlog/pg_resetxlog.c
src/bin/pg_rewind/copy_fetch.c
src/bin/pg_rewind/filemap.c
src/bin/pg_rewind/parsexlog.c
src/bin/pg_rewind/t/004_pg_xlog_symlink.pl
src/bin/pg_upgrade/exec.c
src/bin/pg_xlogdump/pg_xlogdump.c
src/common/file_utils.c
src/include/access/xlog_internal.h
src/include/catalog/catversion.h
src/include/common/file_utils.h
src/include/postmaster/pgarch.h