| От | Richard Huxton |
|---|---|
| Тема | Re: is this a bug or I am blind? |
| Дата | |
| Msg-id | 43A1710B.90703@archonet.com обсуждение исходный текст |
| Ответ на | is this a bug or I am blind? (Mage <mage@mage.hu>) |
| Ответы |
Re: is this a bug or I am blind?
|
| Список | pgsql-general |
Mage wrote:
> online=# select * from common_logins where username = 'potyty';
> online=# select * from common_logins where username like 'potyty';
It's probably worth seeing whether these have different plans (EXPLAIN
ANALYSE...) and if the = is using an index but like isn't.
If so, try issuing "set enable_indexscan=false" first and see what
happens then.
If that makes a difference then I'd guess you have one of two things:
1. A corrupt index (check the REINDEX command)
2. (perhaps more likely) Some localisation issues.
What encoding/locale settings are you using?
--
Richard Huxton
Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера