aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-06-27 09:06:44 +0200
committerPeter Eisentraut <peter@eisentraut.org>2022-06-27 09:09:29 +0200
commitfa06a34d14ea053e1e405a6ab2a1c3f1631c3a5e (patch)
tree5ecd296271df6c8b429fa43624d54e2a6742bcad
parent401f623c7b14890011b9bb9dda7639b1de4d40ad (diff)
downloadpostgresql-fa06a34d14ea053e1e405a6ab2a1c3f1631c3a5e.tar.gz
postgresql-fa06a34d14ea053e1e405a6ab2a1c3f1631c3a5e.zip
pg_upgrade: Fix version comparison for global ICU support
Reported-by: Justin Pryzby <pryzby@telsasoft.com> Discussion: https://www.postgresql.org/message-id/20220625151930.GH22452@telsasoft.com
-rw-r--r--src/bin/pg_upgrade/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_upgrade/info.c b/src/bin/pg_upgrade/info.c
index 5c3968e0ea3..36b0670df66 100644
--- a/src/bin/pg_upgrade/info.c
+++ b/src/bin/pg_upgrade/info.c
@@ -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