Re: Custom Operator for citext LIKE predicates question - Mailing list pgsql-hackers

From Efrain J. Berdecia
Subject Re: Custom Operator for citext LIKE predicates question
Date
Msg-id 2111588120.340821.1642094436477@mail.yahoo.com
Whole thread Raw
In response to Re: Custom Operator for citext LIKE predicates question  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Good points. At least on the limited testing we did, we were able to get the same answer back with both executions; at least for the use cases we tested. 

We are still doing more thourough testing.

This is an application that is been ported from MS SQL server to postgres and apparently the migration dba team determined citext was the way to go to maintain MSSQL existing usage of the data in the columns.


Thanks,
Efrain J. Berdecia


On Thursday, January 13, 2022, 10:10:38 AM EST, Tom Lane <tgl@sss.pgh.pa.us> wrote:


"Efrain J. Berdecia" <ejberdecia@yahoo.com> writes:
> In our setup it has actually worked per the explains provided making the query run in milliseconds instead of seconds.

To me, "work" includes "get the right answer".  I do not think you
are getting the same answers that citext would normally provide.
If you don't care about case-insensitivity, why don't you just
use plain text?


            regards, tom lane

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Avoiding smgrimmedsync() during nbtree index builds
Next
From: Pavel Stehule
Date:
Subject: Re: Schema variables - new implementation for Postgres 15