agora inbox for pgsql-docs@postgresql.org
help / color / mirror / Atom feedFrom: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: chu_z@hotmail.com
Subject: Correction
Date: Fri, 22 Jul 2022 00:24:03 +0000
Message-ID: <165844944334.271448.18067658391804504480@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/14/citext.html
Description:
"If you declare a column as UNIQUE or PRIMARY KEY, the implicitly generated
index is case-sensitive. So it's useless for case-insensitive searches, and
it won't enforce uniqueness case-insensitively."
I think the statement above is not correct. I tried creating a PK or unique
key index on a CITEXT column. It checks uniqueness in case-insensitivity.
Here is the error I got when I tried to add a duplicated value 'Des'.
DETAIL: Key (des)=(Des) already exists.
view thread (20+ messages) latest in thread
Message-ID: <165844944334.271448.18067658391804504480@wrigleys.postgresql.org>
Permalink: ../165844944334.271448.18067658391804504480@wrigleys.postgresql.org/
Also on: postgresql.org/message-id/165844944334.271448.18067658391804504480@wrigleys.postgresql.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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, chu_z@hotmail.com
Subject: Re: Correction
In-Reply-To: <165844944334.271448.18067658391804504480@wrigleys.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox