Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giKyP-0006k6-9N for pgsql-general@arkaria.postgresql.org; Sat, 12 Jan 2019 15:13:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1giKyN-00052H-SH for pgsql-general@arkaria.postgresql.org; Sat, 12 Jan 2019 15:13:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giKyN-0004v6-F1 for pgsql-general@lists.postgresql.org; Sat, 12 Jan 2019 15:13:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giKyK-0007MF-S1 for pgsql-general@postgresql.org; Sat, 12 Jan 2019 15:13:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x0CFD8oj030013; Sat, 12 Jan 2019 10:13:08 -0500 From: Tom Lane To: rihad cc: pgsql-general General Subject: Re: CREATE COLLATION to match pg_collation data In-reply-to: <94b6ba68-3f7e-d205-d009-219fce1318a6@mail.ru> References: <94b6ba68-3f7e-d205-d009-219fce1318a6@mail.ru> Comments: In-reply-to rihad message dated "Sat, 12 Jan 2019 11:19:37 +0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <30011.1547305988.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 12 Jan 2019 10:13:08 -0500 Message-ID: <30012.1547305988@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk rihad 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: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 collname=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 | collnamespace | collowner | collprovider | = > collencoding |=C2=A0=C2=A0=C2=A0 collcollate=C2=A0=C2=A0=C2=A0 | collcty= pe=C2=A0=C2=A0=C2=A0=C2=A0 | collversion > ------------------------+---------------+-----------+--------------+----= ----------+-------------------+-------------------+------------- > =C2=A0az-x-icu=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 11 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 10 | = i=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -1 | az=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 | az=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 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