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 | bc1fbc960bf5efbb692f4d1bf91bf9bc6390425a (patch) | |
tree | acd5a36bff5deca2c8c18dadb878498ece53f9d7 /src/bin/pg_upgrade/function.c | |
parent | d7885b1f87fa066606acc54700edee28812be8c1 (diff) | |
download | postgresql-bc1fbc960bf5efbb692f4d1bf91bf9bc6390425a.tar.gz postgresql-bc1fbc960bf5efbb692f4d1bf91bf9bc6390425a.zip |
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/function.c')
-rw-r--r-- | src/bin/pg_upgrade/function.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_upgrade/function.c b/src/bin/pg_upgrade/function.c index d163cb2dde7..e0bc368e1e1 100644 --- a/src/bin/pg_upgrade/function.c +++ b/src/bin/pg_upgrade/function.c @@ -90,7 +90,7 @@ get_loadable_libraries(void) * http://archives.postgresql.org/pgsql-hackers/2012-03/msg01101.php * http://archives.postgresql.org/pgsql-bugs/2012-05/msg00206.php */ - if (GET_MAJOR_VERSION(old_cluster.major_version) < 901) + if (GET_MAJOR_VERSION(old_cluster.major_version) <= 900) { PGresult *res; @@ -218,7 +218,7 @@ check_loadable_libraries(void) * library name "plpython" in an old PG <= 9.1 cluster must look * for "plpython2" in the new cluster. */ - if (GET_MAJOR_VERSION(old_cluster.major_version) < 901 && + if (GET_MAJOR_VERSION(old_cluster.major_version) <= 900 && strcmp(lib, "$libdir/plpython") == 0) { lib = "$libdir/plpython2"; |