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
This commit is contained in:
parent
401f623c7b
commit
fa06a34d14
@ -319,7 +319,7 @@ get_db_infos(ClusterInfo *cluster)
|
|||||||
|
|
||||||
snprintf(query, sizeof(query),
|
snprintf(query, sizeof(query),
|
||||||
"SELECT d.oid, d.datname, d.encoding, d.datcollate, d.datctype, ");
|
"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),
|
snprintf(query + strlen(query), sizeof(query) - strlen(query),
|
||||||
"'c' AS datlocprovider, NULL AS daticulocale, ");
|
"'c' AS datlocprovider, NULL AS daticulocale, ");
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user