efficiency of wildcards at both ends

From: Sam Z J <sammyjiang721(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: efficiency of wildcards at both ends
Date: 2012-06-20 17:10:03
Message-ID: CAGeKEGbGxHVdZTmgAaYkan=c6=7cPfTKyRTbLEv2+mdfaf_HqQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all

I'm curious how is wildcards at both ends implemented, e.g. LIKE '%str%'
How efficient is it if that's the only search criteria against a large
table? how much does indexing the column help and roughly how much more
space is needed for the index?

if the answers are too long, please point me to the relavant text =D

thanks

--
Zhongshi (Sam) Jiang
sammyjiang721(at)gmail(dot)com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message utsav 2012-06-20 17:15:15 Re: RETURNING MORE THAN ONE CUSTOM TYPE FROM FUNCTION
Previous Message Merlin Moncure 2012-06-20 15:35:46 Re: 32-bit libpq with 64-bit server