pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Don Seiler <don@seiler.us>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Mixed Locales and Upgrading
Date: Wed, 18 Mar 2020 11:25:25 +0900
Message-ID: <20200318022525.GE214947@paquier.xyz> (raw)
In-Reply-To: <1182.1584456350@sss.pgh.pa.us>
References: <CAHJZqBAS6kuTWZwSbu8KqfhJ8dapvTegyA1QweAHAmmQveUyRA@mail.gmail.com>
	<5624.1584372534@sss.pgh.pa.us>
	<CAHJZqBD0tv8VswMA7o=8L4DwVKWVxyx9cCv-xzr6-ZQke3GZ8Q@mail.gmail.com>
	<31606.1584453361@sss.pgh.pa.us>
	<CAHJZqBDAqGbgAHxVQ1rG1QmKPpkqU_W8yi82EdqA-o_0WgaLYw@mail.gmail.com>
	<1182.1584456350@sss.pgh.pa.us>

On Tue, Mar 17, 2020 at 10:45:50AM -0400, Tom Lane wrote:
> Don Seiler <don@seiler.us> writes:
>> What are the ramifications of changing collation like that? Should we
>> consider rebuilding indexes ASAP after that?
> 
> Text indexes would definitely be at risk here.  I'm not really certain
> how bad the problem would be.  Do you have a feeling for how much of
> the data is 100% ASCII?  If you could be sure of that for any given
> column, you wouldn't have to reindex indexes on that column.

There is no way to know how much indexes would get broken without
having a look at it.  Anything ASCII-based should be of no problem.
If you have a doubt, reindexing evey index which includes text column
data is the best course of action in my opinion if you have any
doubts, because that's safe even if it has a higher cost.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (19+ messages)  latest in thread

Message-ID: <20200318022525.GE214947@paquier.xyz>
Permalink:  ../20200318022525.GE214947@paquier.xyz/
Also on:    postgresql.org/message-id/20200318022525.GE214947@paquier.xyz

 · 

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: michael@paquier.xyz, tgl@sss.pgh.pa.us, don@seiler.us
  Subject: Re: Mixed Locales and Upgrading
  In-Reply-To: <20200318022525.GE214947@paquier.xyz>
  References: <CAHJZqBAS6kuTWZwSbu8KqfhJ8dapvTegyA1QweAHAmmQveUyRA@mail.gmail.com> <5624.1584372534@sss.pgh.pa.us> <CAHJZqBD0tv8VswMA7o=8L4DwVKWVxyx9cCv-xzr6-ZQke3GZ8Q@mail.gmail.com> <31606.1584453361@sss.pgh.pa.us> <CAHJZqBDAqGbgAHxVQ1rG1QmKPpkqU_W8yi82EdqA-o_0WgaLYw@mail.gmail.com> <1182.1584456350@sss.pgh.pa.us> <20200318022525.GE214947@paquier.xyz>

* 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