agora inbox for pgsql-docs@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: chu_z@hotmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Correction
Date: Sun, 24 Jul 2022 15:39:17 -0400
Message-ID: <1737957.1658691557@sss.pgh.pa.us> (raw)
In-Reply-To: <165844944334.271448.18067658391804504480@wrigleys.postgresql.org>
References: <165844944334.271448.18067658391804504480@wrigleys.postgresql.org>

PG Doc comments form <noreply@postgresql.org> writes:
> "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.

That paragraph is talking about what happens when you *don't* use citext.

			regards, tom lane





view thread (20+ messages)  latest in thread

Message-ID: <1737957.1658691557@sss.pgh.pa.us>
Permalink:  ../1737957.1658691557@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1737957.1658691557@sss.pgh.pa.us

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: tgl@sss.pgh.pa.us, chu_z@hotmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Correction
  In-Reply-To: <1737957.1658691557@sss.pgh.pa.us>

* 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