aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_upgrade/pg_upgrade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_upgrade/pg_upgrade.c')
-rw-r--r--src/bin/pg_upgrade/pg_upgrade.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_upgrade/pg_upgrade.c b/src/bin/pg_upgrade/pg_upgrade.c
index 70194eb0964..1bc86e4205d 100644
--- a/src/bin/pg_upgrade/pg_upgrade.c
+++ b/src/bin/pg_upgrade/pg_upgrade.c
@@ -407,7 +407,7 @@ create_new_objects(void)
* We don't have minmxids for databases or relations in pre-9.3 clusters,
* so set those after we have restored the schema.
*/
- if (GET_MAJOR_VERSION(old_cluster.major_version) < 903)
+ if (GET_MAJOR_VERSION(old_cluster.major_version) <= 902)
set_frozenxids(true);
/* update new_cluster info now that we have objects in the databases */
@@ -466,9 +466,9 @@ copy_xact_xlog_xid(void)
* Copy old commit logs to new data dir. pg_clog has been renamed to
* pg_xact in post-10 clusters.
*/
- copy_subdir_files(GET_MAJOR_VERSION(old_cluster.major_version) < 1000 ?
+ copy_subdir_files(GET_MAJOR_VERSION(old_cluster.major_version) <= 906 ?
"pg_clog" : "pg_xact",
- GET_MAJOR_VERSION(new_cluster.major_version) < 1000 ?
+ GET_MAJOR_VERSION(new_cluster.major_version) <= 906 ?
"pg_clog" : "pg_xact");
/* set the next transaction id and epoch of the new cluster */