Re: Partial match in GIN
От
Alvaro Herrera
Тема
Re: Partial match in GIN
Дата
Msg-id
20080408191953.GN9062@alvh.no-ip.org
Ответ на
Re: Partial match in GIN (Heikki Linnakangas)
Список
Дерево обсуждения
Partial match in GIN Teodor Sigaev <teodor@sigaev.ru>
Re: Partial match in GIN Heikki Linnakangas <heikki@enterprisedb.com>
Re: Partial match in GIN Teodor Sigaev <teodor@sigaev.ru>
Re: Partial match in GIN Heikki Linnakangas <heikki@enterprisedb.com>
Re: Partial match in GIN Alvaro Herrera <alvherre@commandprompt.com>
Re: Partial match in GIN Heikki Linnakangas <heikki@enterprisedb.com>
Re: Partial match in GIN Alvaro Herrera <alvherre@commandprompt.com>
Re: Partial match in GIN Heikki Linnakangas <heikki@enterprisedb.com>
Re: Partial match in GIN Teodor Sigaev <teodor@sigaev.ru>
Re: Partial match in GIN (next vesrion) Teodor Sigaev <teodor@sigaev.ru>
Re: Partial match in GIN (next vesrion) Teodor Sigaev <teodor@sigaev.ru>
Re: Partial match in GIN (next vesrion) Tom Lane <tgl@sss.pgh.pa.us>
Re: Partial match in GIN (next vesrion) Teodor Sigaev <teodor@sigaev.ru>
Re: Partial match in GIN (next vesrion) Tom Lane <tgl@sss.pgh.pa.us>
Re: Partial match in GIN (next vesrion) Teodor Sigaev <teodor@sigaev.ru>
Re: Partial match in GIN (next vesrion) Tom Lane <tgl@sss.pgh.pa.us>
Re: Partial match in GIN (next vesrion) Teodor Sigaev <teodor@sigaev.ru>
Re: Partial match in GIN (next vesrion) Tom Lane <tgl@sss.pgh.pa.us>
Re: Partial match in GIN (next vesrion) Oleg Bartunov <oleg@sai.msu.su>
Re: Partial match in GIN Gregory Stark <stark@enterprisedb.com>
Heikki Linnakangas wrote:
> Teodor Sigaev wrote:
>> GIN speeds up '%foo%' too - which is impossible for btree. But I don't
>> like a hack around LIKE support in BTree. This support uses outflank
>> ways missing regular one.
>
> You could satisfy '%foo%' using a regular and a reverse B-tree index,
> and a bitmap AND. Which is interestingly similar to the way you proposed
> to use a TIDBitmap within GIN.
Huh, can you? I can see doing "col LIKE 'foo%' OR reverse(col) LIKE
reverse('%foo')" with two btree indexes, but not a true %foo% ...
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-patches по дате отправления