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
commit0e78dcaf73b6b9d4c74b858ebb4a0464b7c726de (patch)
treed60811387bc05ea9398fec0b827191d1c89ae060 /src/bin/pg_upgrade/function.c
parent997188b6e0a11c60ddab369969ea2e57202941b8 (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 30093407da9..78c2cc49fb9 100644
--- a/src/bin/pg_upgrade/function.c
+++ b/src/bin/pg_upgrade/function.c
@@ -86,7 +86,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;
@@ -232,7 +232,7 @@ check_loadable_libraries(void)
* for languages, and does not help with function shared objects, so
* we just do a general fix.
*/
- 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";