Re: PATCH: CITEXT 2.0 v4 - Mailing list pgsql-hackers

From Michael Paesold
Subject Re: PATCH: CITEXT 2.0 v4
Date
Msg-id 2DF54270-10B1-4687-869F-4AD77D3A7CB8@gmx.at
Whole thread Raw
In response to Re: PATCH: CITEXT 2.0 v4  ("David E. Wheeler" <david@kineticode.com>)
Responses Re: PATCH: CITEXT 2.0 v4  ("David E. Wheeler" <david@kineticode.com>)
List pgsql-hackers
Am 16.07.2008 um 20:38 schrieb David E. Wheeler:
>
> The trouble is that, right now:
>
> template1=# select regexp_replace( 'fxx'::citext, 'X'::citext, 'o');
> regexp_replace
> ----------------
> fxx
> (1 row)
>
> So there's an inconsistency there. I don't know how to make that  
> work case-insensitively.

Wouldn't it be possible to create a variant of regexp_replace, i.e.  
regexp_replace(citext,citext,text), which would again lower-case the  
first two arguments before passing the input to  
regexp_replace(text,text,text)?

Best Regards
Michael Paesold


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: WITH RECUSIVE patches 0717
Next
From: "Pavel Stehule"
Date:
Subject: hash distinct