Re: [HACKERS] OR clause status report

From: Vadim Mikheev <vadim(at)krs(dot)ru>
To: Vince Vielhaber <vev(at)michvhf(dot)com>
Cc: "(PostgreSQL-development)" <hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] OR clause status report
Date: 1998-07-31 13:24:50
Message-ID: 35C1C5A2.EAFC6C65@krs.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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...

> NOTICE: QUERY PLAN:
>
> Seq Scan on locations (cost=7263.30 size=84899 width=32)

Vadim

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 1998-07-31 13:39:51 Re: [HACKERS] OR clause status report
Previous Message Vince Vielhaber 1998-07-31 12:54:20 RE: [HACKERS] OR clause status report