From: | Richard van der Hoff <richard(at)matrix(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Inexplicable duplicate rows with unique constraint |
Date: | 2020-01-16 18:06:04 |
Message-ID: | 579c492c-350f-2841-ed4c-94b2f904a4bb@matrix.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 16/01/2020 17:48, Tom Lane wrote:
> Richard van der Hoff <richard(at)matrix(dot)org> writes:
>> On 16/01/2020 17:12, Magnus Hagander wrote:
>>> See https://wiki.postgresql.org/wiki/Locale_data_changes for hints on
>>> which linux distros updated when.
>
>> It seems like a plausible explanation but it's worth noting that all the
>> indexed data here is (despite being in text columns), plain ascii. I'm
>> surprised that a change in collation rules would change the sorting of
>> such strings, and hence that it could lead to this problem. Am I naive?
>
> Unfortunately, strings containing punctuation do sort differently
> after these changes, even with all-ASCII data. The example given
> on that wiki page demonstrates this.
Thank you Tom. I should learn to read properly.
I think this very much explains the symptoms we're seeing. Thanks very
much for the detailed and very helpful answers!
From | Date | Subject | |
---|---|---|---|
Next Message | Susan Hurst | 2020-01-16 18:12:15 | Re: Inexplicable duplicate rows with unique constraint |
Previous Message | Tom Lane | 2020-01-16 17:48:06 | Re: Inexplicable duplicate rows with unique constraint |