From: | Vince Vielhaber <vev(at)michvhf(dot)com> |
---|---|
To: | Vadim Mikheev <vadim(at)krs(dot)ru> |
Cc: | "(PostgreSQL-development)" <hackers(at)postgreSQL(dot)org> |
Subject: | Re: [HACKERS] OR clause status report |
Date: | 1998-07-31 13:39:51 |
Message-ID: | XFMail.980731093951.vev@michvhf.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 31-Jul-98 Vadim Mikheev wrote:
> Vince Vielhaber wrote:
>>
>> Now I've been wondering why my selects are so slow. Is this telling
>> me
>> that they're NOT using the index? And if not, any ideas why?
>>
>> The select returned 35 rows out of approx 170,000.
>>
>> -----
>> campsites=> explain select * from locations where
>> lower(city)='oxford';
> ^^^^^^^^^^^
> You should
>
> create index index_name on locations (lower(city))
> ^^^^^
> - this is known as functional index...
>
campsites=> create index lower_city on locations (lower(city));
ERROR: DefineIndex: (null) class not found
campsites=>
Hmmm..
Vince.
--
==========================================================================
Vince Vielhaber -- KA8CSH email: vev(at)michvhf(dot)com flame-mail: /dev/null
# include <std/disclaimers.h> TEAM-OS2
Online Searchable Campground Listings http://www.camping-usa.com
"There is no outfit less entitled to lecture me about bloat
than the federal government" -- Tony Snow
==========================================================================
From | Date | Subject | |
---|---|---|---|
Next Message | Vadim Mikheev | 1998-07-31 13:46:28 | Re: [HACKERS] OR clause status report |
Previous Message | Vadim Mikheev | 1998-07-31 13:24:50 | Re: [HACKERS] OR clause status report |