Re: index on user defined type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: index on user defined type
Дата
Msg-id 1614.1105566193@sss.pgh.pa.us
обсуждение исходный текст
Ответ на index on user defined type  (Jeff Davis <jdavis-pgsql@empires.org>)
Ответы Re: index on user defined type  (Michael Fuhr <mike@fuhr.org>)
Re: index on user defined type  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-general
Jeff Davis <jdavis-pgsql@empires.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Postgresql Text field / Visual FoxPro Memo and ODBC
Следующее
От: MargaretGillon@chromalloy.com
Дата:
Сообщение: Re: Postgresql Text field / Visual FoxPro Memo and ODBC