pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedCREATE COLLATION to match pg_collation data
3+ messages / 3 participants
[nested] [flat]
* CREATE COLLATION to match pg_collation data
@ 2019-01-12 07:19 rihad <rihad@mail.ru>
0 siblings, 1 reply; 3+ messages in thread
From: rihad @ 2019-01-12 07:19 UTC (permalink / raw)
To: pgsql-general
Hi, since pg_import_system_collations() that would solve all this
doesn't exist in 9.6.x, is there a way to I properly map it to a CREATE
COLLATE call? Specifically I need to have this collation (from 10.x) in
9.6.x so it works on FreeBSD:
collname | collnamespace | collowner | collprovider |
collencoding | collcollate | collctype | collversion
------------------------+---------------+-----------+--------------+--------------+-------------------+-------------------+-------------
az-x-icu | 11 | 10 | i
| -1 | az | az | 153.88.34
CREATE COLLATIONname (
[ LOCALE =locale, ]
[ LC_COLLATE =lc_collate, ]
[ LC_CTYPE =lc_ctype ]
)
CREATE COLLATIONname FROMexisting_collation
https://www.postgresql.org/docs/9.6/sql-createcollation.html Can I just
not use "create collation", and simply insert the new row as is? Thanks
for any tips.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: CREATE COLLATION to match pg_collation data
@ 2019-01-12 15:13 Tom Lane <tgl@sss.pgh.pa.us>
parent: rihad <rihad@mail.ru>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2019-01-12 15:13 UTC (permalink / raw)
To: rihad <rihad@mail.ru>; +Cc: pgsql-general
rihad <rihad@mail.ru> writes:
> Hi, since pg_import_system_collations() that would solve all this
> doesn't exist in 9.6.x, is there a way to I properly map it to a CREATE
> COLLATE call? Specifically I need to have this collation (from 10.x) in
> 9.6.x so it works on FreeBSD:
> collname | collnamespace | collowner | collprovider |
> collencoding | collcollate | collctype | collversion
> ------------------------+---------------+-----------+--------------+--------------+-------------------+-------------------+-------------
> az-x-icu | 11 | 10 | i
> | -1 | az | az | 153.88.34
That's an ICU collation, so you're out of luck: there is no ICU
support in 9.6.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: CREATE COLLATION to match pg_collation data
@ 2019-01-12 18:50 Peter Geoghegan <pg@bowt.ie>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Peter Geoghegan @ 2019-01-12 18:50 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: rihad <rihad@mail.ru>; pgsql-general
On Sat, Jan 12, 2019 at 7:13 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> That's an ICU collation, so you're out of luck: there is no ICU
> support in 9.6.
FWIW, there is some form of FreeBSD Postgres support for ICU that
predates the officially supported ICU feature. The FreeBSD Postgres
packages have been built with ICU support for many years -- they
modify the source code minimally to make this work. It may well still
be impossible to use "az-x-icu" on a FreeBSD installation of 9.6,
though.
--
Peter Geoghegan
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-01-12 18:50 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-12 07:19 CREATE COLLATION to match pg_collation data rihad <rihad@mail.ru>
2019-01-12 15:13 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-01-12 18:50 ` Peter Geoghegan <pg@bowt.ie>
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