From 46d482814cd4a9c474540a9c4f040ce1cd514f46 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter_e@gmx.net>
Date: Mon, 23 Jan 2017 13:45:32 -0500
Subject: [PATCH] Don't error when no system locales were found

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/commands/collationcmds.c b/src/backend/commands/collationcmds.c
index 71b21bf0d20..8d4d5b7b63b 100644
--- a/src/backend/commands/collationcmds.c
+++ b/src/backend/commands/collationcmds.c
@@ -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 */
 
-- 
GitLab