We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent8ff1f6a commit11c08c3Copy full SHA for 11c08c3
contrib/pg_upgrade/check.c
@@ -333,13 +333,14 @@ static void
333
check_locale_and_encoding(ControlData*oldctrl,
334
ControlData*newctrl)
335
{
336
-if (strcmp(oldctrl->lc_collate,newctrl->lc_collate)!=0)
+/* These are often defined with inconsistent case, so use pg_strcasecmp(). */
337
+if (pg_strcasecmp(oldctrl->lc_collate,newctrl->lc_collate)!=0)
338
pg_log(PG_FATAL,
339
"old and new cluster lc_collate values do not match\n");
-if (strcmp(oldctrl->lc_ctype,newctrl->lc_ctype)!=0)
340
+if (pg_strcasecmp(oldctrl->lc_ctype,newctrl->lc_ctype)!=0)
341
342
"old and new cluster lc_ctype values do not match\n");
-if (strcmp(oldctrl->encoding,newctrl->encoding)!=0)
343
+if (pg_strcasecmp(oldctrl->encoding,newctrl->encoding)!=0)
344
345
"old and new cluster encoding values do not match\n");
346
}