pg_upgrade: Fix version comparison for global ICU support
authorPeter Eisentraut <[email protected]>
Mon, 27 Jun 2022 07:06:44 +0000 (09:06 +0200)
committerPeter Eisentraut <[email protected]>
Mon, 27 Jun 2022 07:09:29 +0000 (09:09 +0200)
Reported-by: Justin Pryzby <[email protected]>
Discussion: https://www.postgresql.org/message-id/20220625151930[email protected]

src/bin/pg_upgrade/info.c

index 5c3968e0ea38d2b9a9bb026a03c0b0075ce3371d..36b0670df6687b883984c4d7ffac262c28b33d4b 100644 (file)
@@ -319,7 +319,7 @@ get_db_infos(ClusterInfo *cluster)
 
    snprintf(query, sizeof(query),
             "SELECT d.oid, d.datname, d.encoding, d.datcollate, d.datctype, ");
-   if (GET_MAJOR_VERSION(old_cluster.major_version) <= 1500)
+   if (GET_MAJOR_VERSION(old_cluster.major_version) < 1500)
        snprintf(query + strlen(query), sizeof(query) - strlen(query),
                 "'c' AS datlocprovider, NULL AS daticulocale, ");
    else