Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMp5C-0002Co-9z for pgsql-general@arkaria.postgresql.org; Mon, 28 Sep 2020 09:04:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMp5B-0002oW-78 for pgsql-general@arkaria.postgresql.org; Mon, 28 Sep 2020 09:04:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMp5A-0002oP-Vg for pgsql-general@lists.postgresql.org; Mon, 28 Sep 2020 09:04:28 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kMp58-0003Tw-Ej for pgsql-general@lists.postgresql.org; Mon, 28 Sep 2020 09:04:28 +0000 Received: by mail-wm1-x341.google.com with SMTP id b79so276083wmb.4 for ; Mon, 28 Sep 2020 02:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=zeLkW5LcrAmId0BLA5ey8ewFD4wiSTXhDhGQsHaByPQ=; b=ucPkAFS+FyxkXyaOj/NC0F1l1+DolRkt02KXGHKYFr1oN9cRHads6X4vWMhVRKOTwY ckYT5l4rIwrzjeIpZRMepJ+8wGhOVN7v88xLjEuF0nXUTSfW9vQSm760XCoTVMbXPJ5T VDy0dKnd6tOdIq+YzPIDmScmKywQlDc1bu2R1dcdlDb4dARtaYA7iuskFWD8XgNrU5bS omBPqrkMkhW/gk2e/jLUYyGeoifDyxaymROpIcpLLLHosPEs2Y3++O1MHiEKCy9XQbQ4 t8SzkhMQkcurdGTuI18OiHhWt76ER8uvXAA6wZ9E6pEiUmrcTJ0qPMv695l84u8SORBy UMUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=zeLkW5LcrAmId0BLA5ey8ewFD4wiSTXhDhGQsHaByPQ=; b=M77mjGihhn2I/itFpJ5OdW/T8kPRRRKbvKFtQowHqa3nTG/Sqf+lA6VC/uNmZ0aX/E TR+J4XjqMzntjgyzoPunai/oHNvHYV8hWOgT9ZXj6EVY//tOINZnSLk81oCzferB/UrT zrSHlVLd5Y19EE7vtCo5odbX2MHVt1PUw/0m3Ys4m2BDM3NFMvoyESun4VXiyS5Am8Ik dQCd9jetOWxNQh44GRVQICt2getnmpkVuUaVFcPbMh1AV1trjY8VCaAoZwO3EIitSoP8 hUP2iRMRlLT3JabNwcqQrWelFmaSk8R6wODf1U4CUGRXpb50ZXqjN1XHhUj6UzeyALnN FI3A== X-Gm-Message-State: AOAM53103gjaI5PcWcuYD6ajHP7IQheQzvnSrMwOVQT78+hDffL2lL7D Xww9nkXfvnHIyvfCzs9r28RU4A== X-Google-Smtp-Source: ABdhPJwgZf/8svmM1Fpoisz4iKxtVzUiS/wQKyoqFQr/H7fM+k+RuiWe6qSJTLspY/93Zxa50tZh8A== X-Received: by 2002:a7b:c111:: with SMTP id w17mr518642wmi.109.1601283864682; Mon, 28 Sep 2020 02:04:24 -0700 (PDT) Received: from localhost.localdomain ([212.186.219.234]) by smtp.gmail.com with ESMTPSA id l4sm599266wrc.14.2020.09.28.02.04.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 02:04:24 -0700 (PDT) Message-ID: <8093bb86d008152d85d12adb3e4be74c9fcc5bef.camel@cybertec.at> Subject: Re: Question about using ICU From: Laurenz Albe To: Paul =?ISO-8859-1?Q?F=F6rster?= , PostgreSQL General Date: Mon, 28 Sep 2020 11:04:23 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 2020-09-28 at 10:02 +0200, Paul Förster wrote: > I have a general question about the use of ICU. Currently, we have PostgreSQL compiled > from source (Linux) without ICU support. All database clusters and databases are UTF8 > and of course relying on glibc. > > With the sooner or later upcoming glibc release 2.28, there will probably a big reindex > operation be necessary. To avoid that, I'd like to use ICU. > > Compiling --with-icu into the new software, is there a way to make a whole database cluster > and all its databases use an ICU without having to manually change all tables or indexes? There have been efforts to add this functionality: https://www.postgresql.org/message-id/flat/5e756dd6-0e91-d778-96fd-b1bcb06c161a%402ndquadrant.com but it didn't get done. Your best bet is to manually change the definition of all columns to use the new collation. psql's \gexec may help. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com