|
|
@ -1493,10 +1493,14 @@ static void |
|
|
|
setup_collation(FILE *cmdfd) |
|
|
|
setup_collation(FILE *cmdfd) |
|
|
|
{ |
|
|
|
{ |
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Add an SQL-standard name. We don't want to pin this, so it doesn't go |
|
|
|
* Add SQL-standard names. We don't want to pin these, so they don't go |
|
|
|
* in pg_collation.h. But add it before reading system collations, so |
|
|
|
* in pg_collation.dat. But add them before reading system collations, so |
|
|
|
* that it wins if libc defines a locale named ucs_basic. |
|
|
|
* that they win if libc defines a locale with the same name. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
PG_CMD_PRINTF("INSERT INTO pg_collation (oid, collname, collnamespace, collowner, collprovider, collisdeterministic, collencoding, colliculocale)" |
|
|
|
|
|
|
|
"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", |
|
|
|
|
|
|
|
BOOTSTRAP_SUPERUSERID, COLLPROVIDER_ICU); |
|
|
|
|
|
|
|
|
|
|
|
PG_CMD_PRINTF("INSERT INTO pg_collation (oid, collname, collnamespace, collowner, collprovider, collisdeterministic, collencoding, collcollate, collctype)" |
|
|
|
PG_CMD_PRINTF("INSERT INTO pg_collation (oid, collname, collnamespace, collowner, collprovider, collisdeterministic, collencoding, collcollate, collctype)" |
|
|
|
"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", |
|
|
|
"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", |
|
|
|
BOOTSTRAP_SUPERUSERID, COLLPROVIDER_LIBC, PG_UTF8); |
|
|
|
BOOTSTRAP_SUPERUSERID, COLLPROVIDER_LIBC, PG_UTF8); |
|
|
|