Re: [GENERAL] SELECT speed with LIKE

2000-04-03 Thread Robert W. Berger
I had the same problem with 6.5.3. It turns out that there is a "known" (at least to the developers; I haven't seen it documented anywhere) problem in 6.5: if your postgresql was compiled with Locale support on, index searches of the form LIKE 'foo%' go very, very slow (much slower than deleting t

Re: [GENERAL] SELECT speed with LIKE

2000-04-02 Thread Frank Bax
At 01:33 PM 4/01/00 -0500, you wrote: >The table has a field called 'stname char(17)' which is indexed. The >query is "SELECT * FROM data WHERE stname LIKE 'MAIN%'". I'm running on >Redhat 6.1, 128MB ram, 40GB, P350. The actual index file is 4 MB. I haven't tried it, but didn't someone mention a

Re: [GENERAL] SELECT speed with LIKE

2000-04-02 Thread brew
> I've got a real problem with the speed of a select. Some folk might > "SELECT * FROM data WHERE stname LIKE 'MAIN%'" I once had a speed problem on mSQL and found if I only selected the columns I needed, rather than use a wildcard to get them all, it ran much faster. Of course, this is a diff