pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vincent Van Driessche <vincent@dabble.be>
To: 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 16:07:07 +0200
Message-ID: <etPan.5d78ff8b.39a7afc.141da@dabble.be> (raw)
In-Reply-To: <31133.1568209167@sss.pgh.pa.us>
References: <etPan.5d78aabe.5e660da.ad70@dabble.be>
	<31133.1568209167@sss.pgh.pa.us>

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?

Right now (after your response) I’d just document in our private documentation that we’d recreate indexes with fixed collation set and only then change collation defaults if we are required to in the future.

The reason I would document this privately is because I can’t seem to find any information on it on the official documentation, only hits on mailing lists or random forums.

I’m glad to help make this more clear for future users, if at all possible.


Kind Regards
Vincent Van Driessche



On 11 September 2019 at 15:39:32, Tom Lane (tgl@sss.pgh.pa.us) wrote:

Vincent Van Driessche <vincent@dabble.be> writes:  
> ... By running it before and after changing the `C` collation into `en_US.UTF-8`:  
> UPDATE pg_database SET datcollate='en_US.UTF-8', datctype='en_US.UTF-8'  

That is not, and I do not think ever will be, a supported operation.  
If it breaks your database it's your own fault.  

regards, tom lane  


Sent via Migadu.com, world's easiest email hosting

Attachments:

  dabble.ico (application/octet-stream, 31.3K) download

view thread (4+ messages)  latest in thread

Message-ID: <etPan.5d78ff8b.39a7afc.141da@dabble.be>
Permalink:  ../etPan.5d78ff8b.39a7afc.141da@dabble.be/
Also on:    postgresql.org/message-id/etPan.5d78ff8b.39a7afc.141da@dabble.be

 · 

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-bugs@postgresql.org
  Cc: vincent@dabble.be, tgl@sss.pgh.pa.us
  Subject: Re: Default collation changes leave indexes in invalid state
  In-Reply-To: <etPan.5d78ff8b.39a7afc.141da@dabble.be>
  References: <etPan.5d78aabe.5e660da.ad70@dabble.be> <31133.1568209167@sss.pgh.pa.us> <etPan.5d78ff8b.39a7afc.141da@dabble.be>

* 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