pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Moran <mike_moran@mac.com>
To: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: Impact of varchar/text in use of indexes
Date: Thu, 11 Mar 2004 18:25:20 +0000
Message-ID: <4050AF10.9060006@mac.com> (raw)

Hi. I have two existing tables, A and B. A has a 'varchar(1000)' field 
and B has a 'text' field, each with btree indexes defined. When I do a 
join between these, on this field, it seems to a hash join, as opposed 
to using the indexes, as I might expect (I'm no postgres expert, btw).

My question is: if I changed both fields to be text or varchar(1000) 
then would the index be used?

Ta,

-- 
Mike





view thread (2+ messages)  latest in thread

Message-ID: <4050AF10.9060006@mac.com>
Permalink:  ../4050AF10.9060006@mac.com/
Also on:    postgresql.org/message-id/4050AF10.9060006@mac.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mike_moran@mac.com
  Subject: Re: Impact of varchar/text in use of indexes
  In-Reply-To: <4050AF10.9060006@mac.com>

* 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