Re: Query appears not to recognise index (enable_seqscan=off)

From: Neil Saunders <n(dot)j(dot)saunders(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsqlnovice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Query appears not to recognise index (enable_seqscan=off)
Date: 2009-04-28 16:55:30
Message-ID: ddcd549e0904280955u356827abg5443f115904e46f8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Excellent - Nailed it - Thanks!

On Tue, Apr 28, 2009 at 5:52 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Neil Saunders <n(dot)j(dot)saunders(at)gmail(dot)com> writes:
>> And we're still running the sequential scan - My questions is why?
>
> You're probably not in C locale.  Change locale or use a
> text_pattern_ops index instead of a plain index on lower(name).
> See
> http://wiki.postgresql.org/wiki/FAQ#Why_are_my_queries_slow.3F_Why_don.27t_they_use_my_indexes.3F
>
>                        regards, tom lane
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Jasen Betts 2009-04-29 12:27:39 Re: Copying data from one table of one database to other table f other database
Previous Message Tom Lane 2009-04-28 16:52:22 Re: Query appears not to recognise index (enable_seqscan=off)