1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

pg_upgrade; change major version comparisons to use <=, not <

This makes checking for older major versions more consistent.

Backpatch-through: 9.5
This commit is contained in:
Bruce Momjian
2020-10-06 12:12:09 -04:00
parent 54ec775e39
commit 89406a9b58
4 changed files with 7 additions and 7 deletions

View File

@@ -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";