From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Subject: Re: index not used in ( varchar = text )
Date: Sun, 23 Feb 2003 20:45:46 +0100
Message-ID: <b3b8da$61d$1@news.hub.org> (raw)
References: <1046023648.9730.23.camel@localhost.localdomain>
----- Original Message -----
From: "Will LaShell" <will@lashell.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mendola@bigfoot.com
Subject: Re: index not used in ( varchar = text )
In-Reply-To: <b3b8da$61d$1@news.hub.org>
References: <1046023648.9730.23.camel@localhost.localdomain> <b3b8da$61d$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox