Re: is this a bug or I am blind? - Mailing list pgsql-general

From Richard Huxton
Subject Re: is this a bug or I am blind?
Date
Msg-id 43A1710B.90703@archonet.com
Whole thread Raw
In response to is this a bug or I am blind?  (Mage <mage@mage.hu>)
Responses Re: is this a bug or I am blind?
List 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 by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: is this a bug or I am blind?
Next
From: Jaime Casanova
Date:
Subject: Re: is this a bug or I am blind?