pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Paul Förster <paul.foerster@gmail.com>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: Question about using ICU
Date: Mon, 28 Sep 2020 11:04:23 +0200
Message-ID: <8093bb86d008152d85d12adb3e4be74c9fcc5bef.camel@cybertec.at> (raw)
In-Reply-To: <FC5678BA-0777-4913-B5BA-5A67CF41B1B8@gmail.com>
References: <FC5678BA-0777-4913-B5BA-5A67CF41B1B8@gmail.com>

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






view thread (5+ messages)  latest in thread

Message-ID: <8093bb86d008152d85d12adb3e4be74c9fcc5bef.camel@cybertec.at>
Permalink:  ../8093bb86d008152d85d12adb3e4be74c9fcc5bef.camel@cybertec.at/
Also on:    postgresql.org/message-id/8093bb86d008152d85d12adb3e4be74c9fcc5bef.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, paul.foerster@gmail.com
  Subject: Re: Question about using ICU
  In-Reply-To: <8093bb86d008152d85d12adb3e4be74c9fcc5bef.camel@cybertec.at>
  References: <FC5678BA-0777-4913-B5BA-5A67CF41B1B8@gmail.com> <8093bb86d008152d85d12adb3e4be74c9fcc5bef.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox