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 1giDaF-0005dt-SE for pgsql-general@arkaria.postgresql.org; Sat, 12 Jan 2019 07:19:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1giDaC-00028h-FJ for pgsql-general@arkaria.postgresql.org; Sat, 12 Jan 2019 07:19:52 +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 1giDaB-00028a-Vl for pgsql-general@lists.postgresql.org; Sat, 12 Jan 2019 07:19:52 +0000 Received: from smtp37.i.mail.ru ([94.100.177.97]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giDa3-0005Q8-EM for pgsql-general@postgresql.org; Sat, 12 Jan 2019 07:19:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Type:MIME-Version:Date:Message-ID:Subject:From:To; bh=MHo0tvZgeVxFBpQVKBbGH4A8mfJSrLceOs4ULFNIm0c=; b=T9/IZLsrWyC9qUtl3+RD/iwjABa6IROsM9S1L2Oz31CM2WW0A8BrSahn3gsQzmelbx25zBqFyT76ppa7Sk1rYmM/JDyDzQNyb9/fOcN/rMzANGK8eumS5QBN0ISxj43dhSLHgbK3/DgS+7PIi831gLKZ1J383Y/bCpK+YqhEALY=; Received: by smtp37.i.mail.ru with esmtpa (envelope-from ) id 1giDZz-0001Fm-Ev for pgsql-general@postgresql.org; Sat, 12 Jan 2019 10:19:39 +0300 To: pgsql-general General From: rihad Subject: CREATE COLLATION to match pg_collation data Message-ID: <94b6ba68-3f7e-d205-d009-219fce1318a6@mail.ru> Date: Sat, 12 Jan 2019 11:19:37 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------AE3B122D2F95173FC3F82A16" Content-Language: en-US Authentication-Results: smtp37.i.mail.ru; auth=pass smtp.auth=rihad@mail.ru smtp.mailfrom=rihad@mail.ru X-77F55803: 3FFC80838138E3AB5A78504BD2AC2941AFB9CFB8EF66CEBF7E3515843788CB9E303706CFBCF9872140C87BB9C809FCE5 X-7FA49CB5: 0D63561A33F958A51D90E381590C2C862EBD6CF9C7722B171F9256336CCD0CAD8941B15DA834481FA18204E546F3947C2FFDA4F57982C5F4F6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8BF1175FABE1C0F9B6A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C224989C3600D1690B4333AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE70F1B43B14DE32D37CD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE7F18118DD3B618E7F7C6694C97D491B2575ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF X-Mailru-Sender: B19AB4DAF1EA2FB5C3C0810F56DD1CDA2FBC590401873FE49D4B81749C89FCAC044891705FD94CA8ABBFE0CF075BC50BFB559BB5D741EB96004FA9CEFBA991DA3A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------AE3B122D2F95173FC3F82A16 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. --------------AE3B122D2F95173FC3F82A16 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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 COLLATION name (
    [ LOCALE = locale, ]
    [ LC_COLLATE = lc_collate, ]
    [ LC_CTYPE = lc_ctype ]
)
CREATE COLLATION name FROM existing_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.
--------------AE3B122D2F95173FC3F82A16--