@@ -1493,10 +1493,14 @@ static void
1493
1493
setup_collation (FILE * cmdfd )
1494
1494
{
1495
1495
/*
1496
- * Add an SQL-standard name . We don't want to pin this , so it doesn 't go
1497
- * in pg_collation.h . But add it before reading system collations, so
1498
- * that it wins if libc defines a locale named ucs_basic .
1496
+ * Add SQL-standard names . We don't want to pin these , so they don 't go
1497
+ * in pg_collation.dat . But add them before reading system collations, so
1498
+ * that they win if libc defines a locale with the same name .
1499
1499
*/
1500
+ PG_CMD_PRINTF ("INSERT INTO pg_collation (oid, collname, collnamespace, collowner, collprovider, collisdeterministic, collencoding, colliculocale)"
1501
+ "VALUES (pg_nextoid('pg_catalog.pg_collation', 'oid', 'pg_catalog.pg_collation_oid_index'), 'unicode', 'pg_catalog'::regnamespace, %u, '%c', true, -1, 'und');\n\n" ,
1502
+ BOOTSTRAP_SUPERUSERID , COLLPROVIDER_ICU );
1503
+
1500
1504
PG_CMD_PRINTF ("INSERT INTO pg_collation (oid, collname, collnamespace, collowner, collprovider, collisdeterministic, collencoding, collcollate, collctype)"
1501
1505
"VALUES (pg_nextoid('pg_catalog.pg_collation', 'oid', 'pg_catalog.pg_collation_oid_index'), 'ucs_basic', 'pg_catalog'::regnamespace, %u, '%c', true, %d, 'C', 'C');\n\n" ,
1502
1506
BOOTSTRAP_SUPERUSERID , COLLPROVIDER_LIBC , PG_UTF8 );
0 commit comments