From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Vincent Van Driessche <vincent@dabble.be>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Default collation changes leave indexes in invalid state
Date: Wed, 11 Sep 2019 12:22:29 -0300
Message-ID: <20190911152229.GA24006@alvherre.pgsql> (raw)
In-Reply-To: <etPan.5d78ff8b.39a7afc.141da@dabble.be>
On 2019-Sep-11, Vincent Van Driessche wrote:
> If I understand it correctly you are saying: “If you run queries like this, you’d better know what you are doing”?
> Is there a more supported way to change the default collation on PostgreSQL?
I don't think there's a supported way to change the default collation on
an existing database. You would have to dump and restore in order to
achieve that cleanly. That would be my advice.
Part of the reason that there isn't a way to do this is that it isn't a
trivial change such as a single catalog update. If you want to use this
hack, fine -- it's your database. However, as you noticed, you will
also have to reindex many indexes (which? it's up to you to find out),
and there likely are other changes that you need to do.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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-bugs@postgresql.org
Cc: alvherre@2ndquadrant.com, vincent@dabble.be, tgl@sss.pgh.pa.us
Subject: Re: Default collation changes leave indexes in invalid state
In-Reply-To: <20190911152229.GA24006@alvherre.pgsql>
References: <etPan.5d78ff8b.39a7afc.141da@dabble.be> <20190911152229.GA24006@alvherre.pgsql>
* 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