pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: me@reynolds.tj
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16333: position() function not equivalent to strpos() function when comparing citext
Date: Sun, 5 Apr 2020 12:41:51 +0200
Message-ID: <d86632ce-76fe-5a3e-abd1-f739b0e3e204@2ndquadrant.com> (raw)
In-Reply-To: <28841.1585863966@sss.pgh.pa.us>
References: <16333-dd25eea9d90e244d@postgresql.org>
	<12376.1585789484@sss.pgh.pa.us>
	<9817af55-fbe4-b342-b641-637f1308ef96@2ndquadrant.com>
	<28841.1585863966@sss.pgh.pa.us>

On 2020-04-02 23:46, Tom Lane wrote:
>> Doesn't seem fixable.  Collations are probably a better way of dealing
>> with this.
> 
> Yeah, now that we can do non-deterministic collations, it seems like
> citext is on the road to obsolescence.  Do we have a documentation
> example of how to build a simple CI collation?

Yes, in PG12 there is a "tip" box in the citext chapter with a link to 
the collation documentation which contains a command to create a 
case-insensitive collation.  So this should be pretty easy to find even 
for casual users.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (6+ messages)

Message-ID: <d86632ce-76fe-5a3e-abd1-f739b0e3e204@2ndquadrant.com>
Permalink:  ../d86632ce-76fe-5a3e-abd1-f739b0e3e204@2ndquadrant.com/
Also on:    postgresql.org/message-id/d86632ce-76fe-5a3e-abd1-f739b0e3e204@2ndquadrant.com

 · 

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-bugs@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, me@reynolds.tj
  Subject: Re: BUG #16333: position() function not equivalent to strpos() function when comparing citext
  In-Reply-To: <d86632ce-76fe-5a3e-abd1-f739b0e3e204@2ndquadrant.com>
  References: <16333-dd25eea9d90e244d@postgresql.org> <12376.1585789484@sss.pgh.pa.us> <9817af55-fbe4-b342-b641-637f1308ef96@2ndquadrant.com> <28841.1585863966@sss.pgh.pa.us> <d86632ce-76fe-5a3e-abd1-f739b0e3e204@2ndquadrant.com>

* 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