Search Postgresql Archives

Re: Case Insensitive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With ILIKE or extension CITEXT, does it have any impact on Indexes, like not picking index ?

ILIKE works only for operator LIKE not for operator =

CITEXT seems some possibilities,

Thanks
Sridhar


On Thu, Mar 28, 2019 at 2:07 PM Sameer Kumar <sameer.kumar@xxxxxxxxxx> wrote:


On Thu, 28 Mar, 2019, 4:33 PM Steve Atkins, <steve@xxxxxxxxxxx> wrote:


> On Mar 28, 2019, at 8:29 AM, Ron <ronljohnsonjr@xxxxxxxxx> wrote:
>
> On 3/28/19 3:23 AM, Sameer Kumar wrote:
> [snip]
>> You can write a query with upper function:
>>
>> select * from emp where upper(ename)=upper('aaa');
>
> That's a guaranteed table scan.

Unless you have an index on upper(ename).

Yup, with this or overloading "=", one can create an _expression_ based index and benefit from it.


Cheers,
  Steve




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux