pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Will LaShell <will@lashell.net>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: index not used in ( varchar = text )
Date: 23 Feb 2003 11:07:27 -0700
Message-ID: <1046023648.9730.23.camel@localhost.localdomain> (raw)
In-Reply-To: <b38dj6$ir$1@news.hub.org>
References: <b38dj6$ir$1@news.hub.org>

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





view thread (6+ messages)  latest in thread

Message-ID: <1046023648.9730.23.camel@localhost.localdomain>
Permalink:  ../1046023648.9730.23.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1046023648.9730.23.camel@localhost.localdomain

 · 

reply

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: will@lashell.net, mendola@bigfoot.com
  Subject: Re: index not used in ( varchar = text )
  In-Reply-To: <1046023648.9730.23.camel@localhost.localdomain>
  References: <b38dj6$ir$1@news.hub.org> <1046023648.9730.23.camel@localhost.localdomain>

* 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