pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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:05:49 +0400
Message-ID: <7892d5e1-d145-aadc-9eee-fa27f25e6254@mail.ru> (raw)
In-Reply-To: <c1b906e9-cf26-1107-a5da-07d3307ab7dc@mail.ru>
References: <cb5abd0e-6a86-4a74-dedc-3eee8a3bd035@mail.ru>
	<25526.1546789893@sss.pgh.pa.us>
	<c1b906e9-cf26-1107-a5da-07d3307ab7dc@mail.ru>

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 )
>
>
>>
>>             regards, tom lane
>> .
>>
>





view thread (5+ messages)  latest in thread

Message-ID: <7892d5e1-d145-aadc-9eee-fa27f25e6254@mail.ru>
Permalink:  ../7892d5e1-d145-aadc-9eee-fa27f25e6254@mail.ru/
Also on:    postgresql.org/message-id/7892d5e1-d145-aadc-9eee-fa27f25e6254@mail.ru

 · 

reply

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: <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>

* 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