]> granicus.if.org Git - postgresql/commitdiff
Don't error when no system locales were found
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 23 Jan 2017 18:45:32 +0000 (13:45 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 23 Jan 2017 18:45:32 +0000 (13:45 -0500)
initdb used to warn about that, but it was changed to an error in
pg_import_system_locales, but some build farm members failed because of
that.  Change it back to a warning.

src/backend/commands/collationcmds.c

index 71b21bf0d209de8c71e9d1a482735ed3d1edc6e6..8d4d5b7b63bb2c56cce41f6d27d07ba402097ea9 100644 (file)
@@ -339,7 +339,7 @@ pg_import_system_collations(PG_FUNCTION_ARGS)
        }
 
        if (count == 0)
-               ereport(ERROR,
+               ereport(WARNING,
                                (errmsg("no usable system locales were found")));
 #endif   /* not HAVE_LOCALE_T && not WIN32 */