summaryrefslogtreecommitdiff
path: root/src/bin/pg_upgrade/function.c
diff options
context:
space:
mode:
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 0c66d1c0566..fef7f258950 100644
--- a/src/bin/pg_upgrade/function.c
+++ b/src/bin/pg_upgrade/function.c
@@ -92,7 +92,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;
@@ -224,7 +224,7 @@ check_loadable_libraries(void)
* works 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";