From: | Shridhar Daithankar <shridhar(at)frodo(dot)hserus(dot)net> |
---|---|
To: | bas(at)scheffers(dot)net |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Not using index |
Date: | 2004-02-12 08:20:39 |
Message-ID: | 402B3757.8010309@frodo.hserus.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Bas Scheffers wrote:
> Then I discovered "set enable_seqscan to off". It started using the index
> again. This is certainly not a case of it not being beneficial to use the
> index; using the index drops the query time from 260ms to 36ms!
>
> In most references I have seen, setting enable_seqscan to off is something
> only to be done for testing. But obviously if Postgres doesn't start
> behaving properly, I can't go to production without it. Is this the case
> or do many use this feature in production?
>
> Can you give Postgres index hints like you can do in Oracle and Sybase?
What is the exact query and table schema?
Are you sure it is not problem of cross data-types in where clause and indexes?
Postgresql uses indexes if it sees fit. Usually it is a better choice to let it
decide what it wants.
Shridhar
From | Date | Subject | |
---|---|---|---|
Next Message | JM | 2004-02-12 09:09:13 | Migrating 7.1.3 to 7.3.4 problem |
Previous Message | Bas Scheffers | 2004-02-12 08:13:58 | Not using index |