Re: Case Insensitive

Поиск
Список
Период
Сортировка
От Ron
Тема Re: Case Insensitive
Дата
Msg-id c316dc7f-1eed-ea88-558a-76f00ada79e8@gmail.com
обсуждение исходный текст
Ответ на Re: Case Insensitive  (Steve Atkins <steve@blighty.com>)
Ответы Re: Case Insensitive  (Steve Atkins <steve@blighty.com>)
Список pgsql-general
On 3/28/19 3:33 AM, Steve Atkins 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).

Are you sure?  I thought the lpart had to be immutable for the query 
optimizer to decide to use an index (and upper(ename) is mutable).

-- 
Angular momentum makes the world go 'round.



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

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