| От | Andreas Kostyrka |
|---|---|
| Тема | Re: Index not used, performance problem |
| Дата | |
| Msg-id | 1048957078.7539.17.camel@andi-lap обсуждение исходный текст |
| Ответ на | Re: Index not used, performance problem (Christopher Kings-Lynne <chriskl@familyhealth.com.au>) |
| Ответы |
Re: Index not used, performance problem
|
| Список | pgsql-performance |
On Sat, 2003-03-29 at 14:47, Christopher Kings-Lynne wrote: > As for the LIKE searches, the only ones that PostgreSQL can index are of > the form 'FOO%', which is what you are doing. However, I believe that > PostgreSQL cannot do this if your database encoding is anything other than > 'C'. So, if you are using an Austrian encoding, it might not be able to > use the index. Well, I use LATIN1. How do I store 8-bit chars else? And if so, PostgreSQL seems quite strongly broken, because a relational database relies by design heavily on indexes. > Also, what is the point of searching for LIKE '%'? Why not just leave that > out? Well, it's about generating the SQL query. Actually it's just a border case for searching for a given prefix. Andreas
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера