diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-03-17 09:46:58 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-03-17 09:48:38 -0400 |
commit | 88e66d193fbaf756b3cc9bf94cad116aacbb355b (patch) | |
tree | cf470d1847bd229b74340223dba532d487d7b0b1 /src/bin/pg_upgrade/exec.c | |
parent | bd9028b824c9c5f97795bb6b7b6f5ce38eb69f98 (diff) | |
download | postgresql-88e66d193fbaf756b3cc9bf94cad116aacbb355b.tar.gz postgresql-88e66d193fbaf756b3cc9bf94cad116aacbb355b.zip |
Rename "pg_clog" directory to "pg_xact".
Names containing the letters "log" sometimes confuse users into
believing that only non-critical data is present. It is hoped
this renaming will discourage ill-considered removals of transaction
status data.
Michael Paquier
Discussion: http://postgr.es/m/CA+Tgmoa9xFQyjRZupbdEFuwUerFTvC6HjZq1ud6GYragGDFFgA@mail.gmail.com
Diffstat (limited to 'src/bin/pg_upgrade/exec.c')
-rw-r--r-- | src/bin/pg_upgrade/exec.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/pg_upgrade/exec.c b/src/bin/pg_upgrade/exec.c index 91fa71728e8..cdce4be2113 100644 --- a/src/bin/pg_upgrade/exec.c +++ b/src/bin/pg_upgrade/exec.c @@ -338,11 +338,17 @@ check_data_dir(ClusterInfo *cluster) check_single_dir(pg_data, "pg_tblspc"); check_single_dir(pg_data, "pg_twophase"); - /* pg_xlog has been renamed to pg_wal in post-10 cluster */ + /* pg_xlog has been renamed to pg_wal in v10 */ if (GET_MAJOR_VERSION(cluster->major_version) < 1000) check_single_dir(pg_data, "pg_xlog"); else check_single_dir(pg_data, "pg_wal"); + + /* pg_clog has been renamed to pg_xact in v10 */ + if (GET_MAJOR_VERSION(cluster->major_version) < 1000) + check_single_dir(pg_data, "pg_clog"); + else + check_single_dir(pg_data, "pg_xact"); } |