Re: Case Insensitive

From: Steve Atkins <steve(at)blighty(dot)com>
To: PG mailing List <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Case Insensitive
Date: 2019-03-28 08:33:01
Message-ID: 150586A3-A8F4-4B80-9A4B-310DE265B4B3@blighty.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

> On Mar 28, 2019, at 8:29 AM, Ron <ronljohnsonjr(at)gmail(dot)com> 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).

Cheers,
Steve

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Sameer Kumar 2019-03-28 08:33:20 Re: Case Insensitive
Previous Message Ron 2019-03-28 08:29:55 Re: Case Insensitive

Browse pgsql-general by date

  From Date Subject
Next Message Sameer Kumar 2019-03-28 08:33:20 Re: Case Insensitive
Previous Message Ron 2019-03-28 08:29:55 Re: Case Insensitive