Another problem with indices? - Mailing list pgsql-general

From Zlatko Calusic
Subject Another problem with indices?
Date
Msg-id 87wvgjp8b4.fsf@atlas.iskon.hr
Whole thread Raw
Responses Re: Another problem with indices?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi!

Not long after I resolved my last problem with indices ('vaccum
analyze'), I stumbled upon another.

Check this:

filedb=# select file from filenew where file like '/home/zcalusic/rcs%';

returns

                     file
----------------------------------------------
 /home/zcalusic/rcs
 /home/zcalusic/rcs/linux
 /home/zcalusic/rcs/linux/0_REPORTING-,v
 /home/zcalusic/rcs/linux/10_bug-list.t,v
 /home/zcalusic/rcs/linux/11_00-INDEX,v
...

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???

How can that be, when output above shows I DO have rows that satisfy
this query?
--
Zlatko

pgsql-general by date:

Previous
From: "Brian Baquiran"
Date:
Subject: Re: Transaction Manager
Next
From: "Martin A. Marques"
Date:
Subject: problems with GRANT on Solaris 8