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
Re: index on user defined type |
Список | 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 по дате отправления: