Re: LIKE search and performance - Mailing list pgsql-performance

From Richard Huxton
Subject Re: LIKE search and performance
Date
Msg-id 46571825.30707@archonet.com
Whole thread Raw
In response to Re: LIKE search and performance  (PFC <lists@peufeu.com>)
Responses Re: LIKE search and performance
List pgsql-performance
PFC wrote:
>
>> OK - any application that allows user-built queries: <choose column:
>> foo> <choose filter: contains> <choose target: "bar">
>>
>> Want another? Any application that has a "search by name" box - users
>> can (and do) put one letter in and hit enter.
>>
>> Unfortunately you don't always have control over the selectivity of
>> queries issued.
>
>     -*- HOW TO MAKE A SEARCH FORM -*-
>
>     Imagine you have to code the search on IMDB.
>
>     This is what a smart developer would do

All good domain-specific tips to provide users with a satisfying
search-experience.

None of which address the question of what plan PG should produce for:
SELECT * FROM bigtable WHERE foo LIKE 's%'

--
   Richard Huxton
   Archonet Ltd

pgsql-performance by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: LIKE search and performance
Next
From: Arnau
Date:
Subject: Re: How PostgreSQL handles multiple DDBB instances?