summaryrefslogtreecommitdiff
path: root/src/bin/pg_upgrade/function.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2020-10-06 12:12:09 -0400
committerBruce Momjian <bruce@momjian.us>2020-10-06 12:12:09 -0400
commit2cb4b8e0ae16e7091a7bd5cf94f21d2719b108e0 (patch)
treeea9d698ef59fbb7e3f0f5be4a29fc49d5c4dccdf /src/bin/pg_upgrade/function.c
parentb7f166efade004ba293f52b672961ae064d202cd (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/function.c')
-rw-r--r--src/bin/pg_upgrade/function.c4
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";