From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: aswin.tummala@gmail.com
Subject: BUG #19830: Mention that UNIQUE on a nondeterministic ICU collation treats ignorable characters as duplicates
Date: Wed, 04 Nov 2026 01:43:34 +0000
Message-ID: <19830-9825a04b0d6b4d60@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 19830
Logged by: aswini kumar tummala
Email address: aswin.tummala@gmail.com
PostgreSQL version: 19rc1
Operating system: Windows, MacOs
Description:
Hi,
When migrating from SQL Server, we found that a UNIQUE constraint on a
column with und-u-ks-level2 (deterministic = false)
rejects 'ACME' || U&'\200B' as a duplicate of 'ACME'. The same data loads
fine into a citext column. Section 23.2.3.1 does show
U+2063 being ignored, but it doesn't say what that means for constraints.
A short note under "Nondeterministic Collations" would
have saved us time. It could say that ignorable code points (zero-width
space, soft hyphen, BOM, most control characters) don't
count toward uniqueness, and that this differs from citext.
Reproduced on 18.6 and 19 RC1.
Thanks,
Aswini Kumar Tummala
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: noreply@postgresql.org, aswin.tummala@gmail.com
Subject: Re: BUG #19830: Mention that UNIQUE on a nondeterministic ICU collation treats ignorable characters as duplicates
In-Reply-To: <19830-9825a04b0d6b4d60@postgresql.org>
References: <19830-9825a04b0d6b4d60@postgresql.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