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 1ggAwA-0000r7-B8 for pgsql-general@arkaria.postgresql.org; Sun, 06 Jan 2019 16:06:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ggAw7-0005Qd-UQ for pgsql-general@arkaria.postgresql.org; Sun, 06 Jan 2019 16:06:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggAw7-0005QW-Ls for pgsql-general@lists.postgresql.org; Sun, 06 Jan 2019 16:06:03 +0000 Received: from smtp38.i.mail.ru ([94.100.177.98]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggAw4-00012Z-9p for pgsql-general@postgresql.org; Sun, 06 Jan 2019 16:06:03 +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=haGmFvM9gqV6YAa0YRplLtCcX5lzswi8xGdeacAKVaQ=; b=MT0unKcZcwQLF13/zj+pUrlyP9A+Hn9N/2Jc5OJbQx56X3Z6x0sC2nkRk5o+xyjtNzBPJCVKx+5Y6nWbg3It1bcLSxHlMsS/ke3nImQ0/uLNhMp1/tHb8Z35Ls+XHB7a+zF8nslHSMXmjQ54vdvlZKzj+uV2ToHRavCAOLwRMxk=; Received: by smtp38.i.mail.ru with esmtpa (envelope-from ) id 1ggAw1-0006I4-WC; Sun, 06 Jan 2019 19:05:58 +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> Message-ID: <7892d5e1-d145-aadc-9eee-fa27f25e6254@mail.ru> Date: Sun, 6 Jan 2019 20:05:49 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Authentication-Results: smtp38.i.mail.ru; auth=pass smtp.auth=rihad@mail.ru smtp.mailfrom=rihad@mail.ru X-77F55803: 689590B63E0A4B015A78504BD2AC2941BDD8F2295FF2ADCF15CD4FF88AE002ECADBF7F615021EFD1B8702E652C1D3DAE X-7FA49CB5: 0D63561A33F958A570BD62B7E9CDB87D41802A7DA68980C24C2605B28D18E60A8941B15DA834481FA18204E546F3947C1D471462564A2E19F6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B2EE5AD8F952D28FBA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C22498BFD6B1B042489AC3AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE77E1C1A36D5859E4ACD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE741A2C2B066DD5BB95AA32EAA3BA6C4C075ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF X-Mailru-Sender: B19AB4DAF1EA2FB5FF2BC907F1BFFE743635C2870F033BD322808B9197422018E6EFB8CE34922556ABBFE0CF075BC50BFB559BB5D741EB96004FA9CEFBA991DA3A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 ) > > >> >>             regards, tom lane >> . >> >