diff options
author | Bruce Momjian <bruce@momjian.us> | 2020-10-06 12:12:09 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2020-10-06 12:12:09 -0400 |
commit | 89406a9b58a05c6f5f802c99b1587ae42e650123 (patch) | |
tree | 694491ad4b1a94ca6fe86267249846b4368288b8 /src/bin/pg_upgrade/pg_upgrade.c | |
parent | 54ec775e39cda4bf4047a03699e191e5a9f1fd27 (diff) |
pg_upgrade; change major version comparisons to use <=, not <
This makes checking for older major versions more consistent.
Backpatch-through: 9.5
Diffstat (limited to 'src/bin/pg_upgrade/pg_upgrade.c')
-rw-r--r-- | src/bin/pg_upgrade/pg_upgrade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_upgrade/pg_upgrade.c b/src/bin/pg_upgrade/pg_upgrade.c index c2a775a3e4f..1ebbf0d4213 100644 --- a/src/bin/pg_upgrade/pg_upgrade.c +++ b/src/bin/pg_upgrade/pg_upgrade.c @@ -351,7 +351,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); /* regenerate now that we have objects in the databases */ |