pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedAdding new collations after pg_upgrade?
5+ messages / 2 participants
[nested] [flat]
* Adding new collations after pg_upgrade?
@ 2019-01-06 08:08 rihad <rihad@mail.ru>
0 siblings, 1 reply; 5+ messages in thread
From: rihad @ 2019-01-06 08:08 UTC (permalink / raw)
To: pgsql-general
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?
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Adding new collations after pg_upgrade?
@ 2019-01-06 15:51 Tom Lane <tgl@sss.pgh.pa.us>
parent: rihad <rihad@mail.ru>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2019-01-06 15:51 UTC (permalink / raw)
To: rihad <rihad@mail.ru>; +Cc: pgsql-general
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.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Adding new collations after pg_upgrade?
@ 2019-01-06 15:57 rihad <rihad@mail.ru>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: rihad @ 2019-01-06 15:57 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general
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)
>
> regards, tom lane
> .
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Adding new collations after pg_upgrade?
@ 2019-01-06 16:05 rihad <rihad@mail.ru>
parent: rihad <rihad@mail.ru>
0 siblings, 1 reply; 5+ messages in thread
From: rihad @ 2019-01-06 16:05 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general
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
>> .
>>
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Adding new collations after pg_upgrade?
@ 2019-01-06 16:08 rihad <rihad@mail.ru>
parent: rihad <rihad@mail.ru>
0 siblings, 0 replies; 5+ messages in thread
From: rihad @ 2019-01-06 16:08 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general
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
>>> .
>>>
>>
>
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2019-01-06 16:08 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-06 08:08 Adding new collations after pg_upgrade? rihad <rihad@mail.ru>
2019-01-06 15:51 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-01-06 15:57 ` rihad <rihad@mail.ru>
2019-01-06 16:05 ` rihad <rihad@mail.ru>
2019-01-06 16:08 ` rihad <rihad@mail.ru>
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