Worthwhile optimisation of position()?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Worthwhile optimisation of position()?
Дата
Msg-id 44235FB9.5040202@calorieking.com
обсуждение исходный текст
Ответы Re: Worthwhile optimisation of position()?  (Thomas Hallgren <thomas@tada.se>)
Список pgsql-hackers
Is it worth allowing this:

select count(*) from users_users where position('ch' in username) = 0;

To be able to use an index, like:

select count(*) from users_users where username like 'ch%';

At the moment the position() syntax will do a seqscan, but the like 
syntax will use an index.

Chris



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Joel Miller"
Дата:
Сообщение: Re: [SUGGESTION] CVSync
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: Worthwhile optimisation of position()?