Skip site navigation (1) Skip section navigation (2)

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Saunders <n(dot)j(dot)saunders(at)gmail(dot)com>
Cc: pgsqlnovice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Query appears not to recognise index (enable_seqscan=off)
Date: 2009-04-28 16:52:22
Message-ID: 5728.1240937542@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
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

Responses

pgsql-novice by date

Next:From: Neil SaundersDate: 2009-04-28 16:55:30
Subject: Re: Query appears not to recognise index (enable_seqscan=off)
Previous:From: Neil SaundersDate: 2009-04-28 16:31:48
Subject: Query appears not to recognise index (enable_seqscan=off)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group