From: rihad <rihad@mail.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Adding new collations after pg_upgrade?
Date: Sun, 6 Jan 2019 20:08:26 +0400
Message-ID: <3333d093-7b50-07e9-8de2-6f323582047f@mail.ru> (raw)
In-Reply-To: <7892d5e1-d145-aadc-9eee-fa27f25e6254@mail.ru>
References: <cb5abd0e-6a86-4a74-dedc-3eee8a3bd035@mail.ru>
<25526.1546789893@sss.pgh.pa.us>
<c1b906e9-cf26-1107-a5da-07d3307ab7dc@mail.ru>
<7892d5e1-d145-aadc-9eee-fa27f25e6254@mail.ru>
On 01/06/2019 08:05 PM, rihad wrote:
> On 01/06/2019 07:57 PM, rihad wrote:
>> On 01/06/2019 07:51 PM, Tom Lane wrote:
>>> rihad <rihad@mail.ru> writes:
>>>> Hi. on a freshly installed 10.6 I can see all ICU collations added in
>>>> pg_collation schema. Is there a way to have them for an existing
>>>> database cluster?
>>> There's a function called something like pg_import_system_collations.
>>> See documentation.
>>
>> Thanks a lot!
>>
>> postgres=# select pg_import_system_collations('pg_catalog');
>> pg_import_system_collations
>> -----------------------------
>> 798
>> (1 row)
>>
>> postgres=# select pg_import_system_collations('pg_catalog');
>> pg_import_system_collations
>> -----------------------------
>> 0
>> (1 row)
>
> Oops, I meant schema pg_collation )
Phew, sorry for my confusion. Schema pg_catalog. Table pg_collation. So
I did it right )
>>
>>
>>>
>>> regards, tom lane
>>> .
>>>
>>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: rihad@mail.ru, tgl@sss.pgh.pa.us
Subject: Re: Adding new collations after pg_upgrade?
In-Reply-To: <3333d093-7b50-07e9-8de2-6f323582047f@mail.ru>
References: <cb5abd0e-6a86-4a74-dedc-3eee8a3bd035@mail.ru> <25526.1546789893@sss.pgh.pa.us> <c1b906e9-cf26-1107-a5da-07d3307ab7dc@mail.ru> <7892d5e1-d145-aadc-9eee-fa27f25e6254@mail.ru> <3333d093-7b50-07e9-8de2-6f323582047f@mail.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox