Re: index not used in ( varchar = text )

From: "Gaetano Mendola" <mendola(at)bigfoot(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: index not used in ( varchar = text )
Date: 2003-02-23 19:45:46
Message-ID: b3b8da$61d$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

----- Original Message -----
From: "Will LaShell" <will(at)lashell(dot)net>
Newsgroups: comp.databases.postgresql.admin
Sent: Sunday, February 23, 2003 7:02 PM
Subject: Re: index not used in ( varchar = text )

> 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

Of course that example was a semplification of a real
situation:

..........
my_login ALIAS FOR $1;

SELECT *
FROM user_login
WHERE login = my_login;
..................

and $1 is of type TEXT.

I had the same function on Postgres 7.2.3 and
was working correctly.

Ciao
Gaetano

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephen Harris 2003-02-23 20:03:47 ident sameuser failure
Previous Message Will LaShell 2003-02-23 18:07:27 Re: index not used in ( varchar = text )