| From: | Zlatko Calusic <zlatko(at)iskon(dot)hr> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | pgsql-general(at)postgresql(dot)org | 
| Subject: | Re: Another problem with indices? | 
| Date: | 2000-09-12 20:34:41 | 
| Message-ID: | dnya0xcpsu.fsf@magla.iskon.hr | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> Zlatko Calusic <zlatko(at)iskon(dot)hr> writes:
> > but if I add one '/' before wildcard '%' (as I initially would like to
> > do it):
> 
> > filedb=# select file from filenew where file like '/home/zcalusic/rcs/%';
> >  file 
> > ------
> > (0 rows)
> 
> > No rows???
> 
> Which Postgres version are you running, and in what LOCALE setting
> on what platform?
>
Postgres version is 7.0.2. (running on Debian GNU/Linux)
I'm using hr_HR locale (Croatian locale), LATIN2 encoding.
> Is there an index on filenew(file)?  If so, does dropping it change
> the results?
> 
I have an index on the column in the question, and yes, droping the
index instantly recovers from the bad behavior i.e. queries return
good results.
-- 
Zlatko
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adam Lang | 2000-09-12 20:52:03 | Starting server at boot | 
| Previous Message | Josh Berkus | 2000-09-12 19:51:15 | Re: Weighted Searching |