Re: [PERFORM] cant get an index scan with a LIKE

2008-10-06 Thread Greg Caulton
That worked great - THANKS! CREATE INDEX sct_descriptions_k2 ON sct_descriptions USING btree (term_index varchar_pattern_ops); I noticed I had to keep the original index for the non-like operator but that is not a big deal CREATE INDEX sct_descriptions_k1 ON sct_descriptions USING btr

Re: [PERFORM] cant get an index scan with a LIKE

2008-10-06 Thread Kevin Grittner
>>> "Greg Caulton" <[EMAIL PROTECTED]> wrote: > but I get a sequential scan when I do where term_index like > > select * from sct_descriptions where term_index like 'CHILLS AND FEVER > (FINDING)' > Is there anything else I can do? Settings below, this is PostgreSQL 8.3 > "lc_collate";"Engl

[PERFORM] cant get an index scan with a LIKE

2008-10-06 Thread Greg Caulton
Hi, I have a table sct_descriptions which I have vacuumed, analyzed and reindexed. The index is on term_index INFO: analyzing "public.sct_descriptions" INFO: "sct_descriptions": scanned 3000 of 22861 pages, containing 91877 live rows and 0 dead rows; 3000 rows in sample, 700133 estimated total