| From: | Ron <ronljohnsonjr(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Case Insensitive |
| Date: | 2019-03-28 09:08:48 |
| Message-ID: | c316dc7f-1eed-ea88-558a-76f00ada79e8@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin pgsql-general |
On 3/28/19 3:33 AM, Steve Atkins wrote:
>
>> 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).
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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2019-03-28 09:24:58 | Re: Case Insensitive |
| Previous Message | Sridhar N Bamandlapally | 2019-03-28 09:05:54 | Re: Case Insensitive |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2019-03-28 09:24:58 | Re: Case Insensitive |
| Previous Message | Sridhar N Bamandlapally | 2019-03-28 09:05:54 | Re: Case Insensitive |