No, It wouldn't. If you use "%" for the beginning of you search pattern, a seqential search is performed, ignoring the index wich use the beginning of the string in order to create it's B-tree.Hello,
I need to be able to perform wildcard searches on a VARCHAR(100) column of the form
SELECT * FROM item WHERE serial_no LIKE '%12345678%'
Would an index on serial_no do anything at all for this search?
-- Downloading signature ... 99% *CRC FAILED* signature aborted
---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives?
http://archives.postgresql.org