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 1ggAyb-0000vg-JU for pgsql-general@arkaria.postgresql.org; Sun, 06 Jan 2019 16:08:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ggAya-0005w0-Am for pgsql-general@arkaria.postgresql.org; Sun, 06 Jan 2019 16:08:36 +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 1ggAyZ-0005vs-Po for pgsql-general@lists.postgresql.org; Sun, 06 Jan 2019 16:08:36 +0000 Received: from smtp33.i.mail.ru ([94.100.177.93]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggAyV-0000fo-W3 for pgsql-general@postgresql.org; Sun, 06 Jan 2019 16:08:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To:From:Subject; bh=AOVRdBw9RWT4Yns5zRfKp9bcSiFPCG+lOPxws8VkVCM=; b=aQ9ns6nx6nmMa8p3vCGlD9+Cx4Vmul+Uv3WWA3JQY3yhz5qjL2BBc8fAK0u9c6fRuVuloN/fgSGJKJlU4jYry6xSY3BrPWnBdPo7gDxBFJMvvELa/TJG3lK6cvGt2Q0XV8fyMYpEB9mhCPX2pkkFQiQk2gNhB79TaIPNA+p4Eks=; Received: by smtp33.i.mail.ru with esmtpa (envelope-from ) id 1ggAyS-0001So-O0; Sun, 06 Jan 2019 19:08:29 +0300 Subject: Re: Adding new collations after pg_upgrade? From: rihad To: Tom Lane Cc: "pgsql-general@postgresql.org" References: <25526.1546789893@sss.pgh.pa.us> <7892d5e1-d145-aadc-9eee-fa27f25e6254@mail.ru> Message-ID: <3333d093-7b50-07e9-8de2-6f323582047f@mail.ru> Date: Sun, 6 Jan 2019 20:08:26 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <7892d5e1-d145-aadc-9eee-fa27f25e6254@mail.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Authentication-Results: smtp33.i.mail.ru; auth=pass smtp.auth=rihad@mail.ru smtp.mailfrom=rihad@mail.ru X-77F55803: 257C4F86AB09C89C5A78504BD2AC2941988784FC6C4AE31F050F9F73644F8FBF2B25BABD5808FB36265A8745F2384FA6B05BB5BEAA9546CF X-7FA49CB5: 0D63561A33F958A52DDB61A16E67C7548DD46EF635E34181096C15D2BEFCC9ED8941B15DA834481FA18204E546F3947C1D471462564A2E19F6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8BF1175FABE1C0F9B6A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C22498BFD6B1B042489AC3AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE77E1C1A36D5859E4ACD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE7928B7DE1852CC76068E77C84E8C8F7BA75ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF X-Mailru-Sender: B19AB4DAF1EA2FB5FF2BC907F1BFFE7462AFDAFF80D0D1182B25BABD5808FB36F8C75CEE1205CA85ABBFE0CF075BC50BFB559BB5D741EB96004FA9CEFBA991DA3A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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 >>> . >>> >> >