Re: Case Insensitive

Поиск
Список
Период
Сортировка
От Sameer Kumar
Тема Re: Case Insensitive
Дата
Msg-id CADp-Sm5Yh=8wh9+dw49GW7vHHm9-4A_Qy42UzUaZVsVTQVTALQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Case Insensitive  (Steve Atkins <steve@blighty.com>)
Ответы Re: Case Insensitive  (Sridhar N Bamandlapally <sridhar.bn1@gmail.com>)
Список pgsql-general


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


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

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


Cheers,
  Steve



В списке pgsql-general по дате отправления:

Предыдущее
От: Sameer Kumar
Дата:
Сообщение: Re: Case Insensitive
Следующее
От: Sridhar N Bamandlapally
Дата:
Сообщение: Re: Case Insensitive