Re: is this a bug or I am blind?

Поиск
Список
Период
Сортировка
От 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?  (Csaba Nagy <nagy@ecircle-ag.com>)
Список 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 по дате отправления:

Предыдущее
От: Csaba Nagy
Дата:
Сообщение: Re: is this a bug or I am blind?
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: is this a bug or I am blind?