Re: Inexplicable duplicate rows with unique constraint

2020-01-16 Thread Richard van der Hoff
On 16/01/2020 17:48, Tom Lane wrote: Richard van der Hoff 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 al

Re: Inexplicable duplicate rows with unique constraint

2020-01-16 Thread Richard van der Hoff
On 16/01/2020 17:27, Adrian Klaver wrote: On 1/16/20 9:24 AM, Richard van der Hoff wrote: 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 wo

Re: Inexplicable duplicate rows with unique constraint

2020-01-16 Thread Richard van der Hoff
On 16/01/2020 17:24, Daniel Verite wrote: Looking at these columns which are of type text but do not contain words of any particular language, there's probably no point in using a linguistic-aware collation for them. If you maintain the database schema, what you could do to avoid the dependen

Re: Inexplicable duplicate rows with unique constraint

2020-01-16 Thread Richard van der Hoff
On 16/01/2020 17:12, Magnus Hagander wrote: On Thu, Jan 16, 2020 at 6:08 PM Tom Lane wrote: Richard van der Hoff writes: I'm trying to track down the cause of some duplicate rows in a table which I would expect to be impossible due to a unique constraint. I'm hoping that som

Inexplicable duplicate rows with unique constraint

2020-01-16 Thread Richard van der Hoff
I'm trying to track down the cause of some duplicate rows in a table which I would expect to be impossible due to a unique constraint. I'm hoping that somebody here will be able to suggest something I might have missed. The problem relates to a bug filed against our application (https://githu