Re: Inexplicable duplicate rows with unique constraint - Mailing list pgsql-general

From Richard van der Hoff
Subject Re: Inexplicable duplicate rows with unique constraint
Date
Msg-id e2dbb06e-b314-88ca-e513-af4a31c2f99b@matrix.org
Whole thread Raw
In response to Re: Inexplicable duplicate rows with unique constraint  ("Daniel Verite" <daniel@manitou-mail.org>)
List pgsql-general

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 dependency on the OS collation and stay clear of the particular
> upgrade difficulty of collations is to use COLLATE "C" for this kind of
> field, as opposed to the default collation of the database.
> As a bonus, operations with the "C" collations tend to be faster,
> sometimes even much faster.

Good to know, thanks Daniel!



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Inexplicable duplicate rows with unique constraint
Next
From: Richard van der Hoff
Date:
Subject: Re: Inexplicable duplicate rows with unique constraint