Impact of varchar/text in use of indexes

From: Mike Moran <mike_moran(at)mac(dot)com>
To: PgSQL Performance ML <pgsql-performance(at)postgresql(dot)org>
Subject: Impact of varchar/text in use of indexes
Date: 2004-03-11 18:25:20
Message-ID: 4050AF10.9060006@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Andrew Sullivan 2004-03-11 18:29:08 Re: compiling 7.4.1 on Solaris 9
Previous Message brew 2004-03-11 15:08:52 Re: [PERFORM] started Data Warehousing