pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard van der Hoff <richard@matrix.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Inexplicable duplicate rows with unique constraint
Date: Thu, 16 Jan 2020 17:31:38 +0000
Message-ID: <9265a081-adfd-4792-5385-70cc09a39baa@matrix.org> (raw)
In-Reply-To: <c7960226-4f03-8623-cd3c-b53af33eaa61@aklaver.com>
References: <288488b7-d3b6-905b-3706-43f7a3c7bc52@matrix.org>
	<1605.1579194518@sss.pgh.pa.us>
	<CABUevEwqyQeFKJbucVTjcchsxeq=eZ+AAsSWi8WKf8HM-EVQoQ@mail.gmail.com>
	<aa5a565d-15f9-c44a-fd34-1fff814b0c51@matrix.org>
	<c7960226-4f03-8623-cd3c-b53af33eaa61@aklaver.com>

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 would change the 
>> sorting of such strings, and hence that it could lead to this problem. 
>> Am I naive?
> 
> In psql who does:
> 
> \l the_database_name
> 
> show?

synapse=> \l synapse
                                  List of databases
   Name   |  Owner   | Encoding |   Collate   |    Ctype    |   Access 
privileges
---------+----------+----------+-------------+-------------+-----------------------
  synapse | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
postgres=CTc/postgres+
          |          |          |             |             | 
=Tc/postgres         +
          |          |          |             |             | 
synapse=CTc/postgres
(1 row)






view thread (14+ messages)  latest in thread

Message-ID: <9265a081-adfd-4792-5385-70cc09a39baa@matrix.org>
Permalink:  ../9265a081-adfd-4792-5385-70cc09a39baa@matrix.org/
Also on:    postgresql.org/message-id/9265a081-adfd-4792-5385-70cc09a39baa@matrix.org

 · 

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-general@postgresql.org
  Cc: richard@matrix.org, adrian.klaver@aklaver.com
  Subject: Re: Inexplicable duplicate rows with unique constraint
  In-Reply-To: <9265a081-adfd-4792-5385-70cc09a39baa@matrix.org>
  References: <288488b7-d3b6-905b-3706-43f7a3c7bc52@matrix.org> <1605.1579194518@sss.pgh.pa.us> <CABUevEwqyQeFKJbucVTjcchsxeq=eZ+AAsSWi8WKf8HM-EVQoQ@mail.gmail.com> <aa5a565d-15f9-c44a-fd34-1fff814b0c51@matrix.org> <c7960226-4f03-8623-cd3c-b53af33eaa61@aklaver.com> <9265a081-adfd-4792-5385-70cc09a39baa@matrix.org>

* 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