Re: index not used in ( varchar = text ) - Mailing list pgsql-admin

From Will LaShell
Subject Re: index not used in ( varchar = text )
Date
Msg-id 1046023648.9730.23.camel@localhost.localdomain
Whole thread Raw
In response to index not used in ( varchar = text )  ("Gaetano Mendola" <mendola@bigfoot.com>)
List pgsql-admin
Why would you want to cast that to text, if your field is a varchar?  I
wouldn't think you would have to cast it at all, or if you do, cast it
to a varchar.

Curious,

WIll


On Sat, 2003-02-22 at 10:55, Gaetano Mendola wrote:
> Hi all,
>
> why in Postgresql 7.3.2 in a select like:
>
> SELECT *
> FROM user_login
> WHERE login = 'FOO'::text;
>
> and login is a VARCHAR the index on login
> is not used anymore ?
>
>
> Ciao
> Gaetano
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org



pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: \d tablename with psql over slow links...
Next
From: "Gaetano Mendola"
Date:
Subject: Re: index not used in ( varchar = text )