Re: index on user defined type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <jdavis-pgsql(at)empires(dot)org>
Cc: PgSQL General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: index on user defined type
Date: 2005-01-12 21:43:13
Message-ID: 1614.1105566193@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeff Davis <jdavis-pgsql(at)empires(dot)org> writes:
> I think I created a type that was compatible with the btree index, and
> everything seems fine, except that it doesn't actually use the index. I
> created the operators and the opclass as well.

> => explain select * from test where t = '(2)';
> QUERY PLAN
> ---------------------------------------------------------------------
> Seq Scan on test (cost=100000000.00..100000002.54 rows=1 width=32)
> Filter: ((t).i = ('(2)'::type2).i)
> (2 rows)

The explain doesn't seem to quite match up with what you wrote in the
command. How did those ".i" qualifiers get in there?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Josué Maldonado 2005-01-12 21:50:07 Re: Postgresql Text field / Visual FoxPro Memo and ODBC
Previous Message MargaretGillon 2005-01-12 21:38:24 Re: Postgresql Text field / Visual FoxPro Memo and ODBC