Re: PATCH: CITEXT 2.0 v4

From: Michael Paesold <mpaesold(at)gmx(dot)at>
To: David E(dot) Wheeler <david(at)kineticode(dot)com>
Cc: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PATCH: CITEXT 2.0 v4
Date: 2008-07-17 10:45:42
Message-ID: 2DF54270-10B1-4687-869F-4AD77D3A7CB8@gmx.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2008-07-17 11:38:29 hash distinct
Previous Message Tatsuo Ishii 2008-07-17 09:40:25 WITH RECUSIVE patches 0717