Re: Feature request for adoptive indexes
От
Peter Geoghegan
Тема
Re: Feature request for adoptive indexes
Дата
Msg-id
CAH2-Wz=22epJjPp9Z+FaZt2Q+cVTDMr6EvGf8eOLrmFFjq-1Dg@mail.gmail.com
Ответ на
Re: Feature request for adoptive indexes (Pavel Borisov)
Список
Дерево обсуждения
Feature request for adoptive indexes Hayk Manukyan <manukyantt@gmail.com>
Re: Feature request for adoptive indexes Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: Feature request for adoptive indexes Hayk Manukyan <manukyantt@gmail.com>
Re: Feature request for adoptive indexes Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: Feature request for adoptive indexes Robert Haas <robertmhaas@gmail.com>
Re: Feature request for adoptive indexes Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: Feature request for adoptive indexes Hayk Manukyan <manukyantt@gmail.com>
Re: Feature request for adoptive indexes Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: Feature request for adoptive indexes Pavel Borisov <pashkin.elfe@gmail.com>
Re: Feature request for adoptive indexes Hayk Manukyan <manukyantt@gmail.com>
Re: Feature request for adoptive indexes Pavel Borisov <pashkin.elfe@gmail.com>
Re: Feature request for adoptive indexes Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: Feature request for adoptive indexes Mark Dilger <mark.dilger@enterprisedb.com>
Re: Feature request for adoptive indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: Feature request for adoptive indexes Peter Geoghegan <pg@bowt.ie>
Re: Feature request for adoptive indexes Pavel Borisov <pashkin.elfe@gmail.com>
Re: Feature request for adoptive indexes Peter Geoghegan <pg@bowt.ie>
Re: Feature request for adoptive indexes Hayk Manukyan <manukyantt@gmail.com>
Re: Feature request for adoptive indexes Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: Feature request for adoptive indexes Pavel Borisov <pashkin.elfe@gmail.com>
Re: Feature request for adoptive indexes Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: Feature request for adoptive indexes Hayk Manukyan <manukyantt@gmail.com>
Re: Feature request for adoptive indexes Tomas Vondra <tomas.vondra@enterprisedb.com>
On Wed, Oct 27, 2021 at 1:02 AM Pavel Borisov wrote: > AFAIK Gin is lossy for phrase queries as we don't store word position in the posting list. For purely logical queries, where position doesn't matter, it's not lossy. GIN is always lossy, in the sense that it provides only a gingetbitmap() routine -- there is no gingettuple() routine. I believe that this is fundamental to the overall design of GIN. It would be very difficult to add useful gingettuple() functionality now, since GIN already relies on lossiness to avoid race conditions. Here's an example of the problems that "adding gingettuple()" would run into: Today, an index's pending list entries can be merged concurrently with the entry tree, without worrying about returning the same tuples twice. This is only safe/correct because GIN only supports bitmap index scans. Without that, you need some other mechanism to make it safe -- ISTM you must "logically lock" the index structure, using ARIES/KVL style key value locks, or something along those lines. -- Peter Geoghegan
В списке pgsql-hackers по дате отправления
От: Jacob Champion
Дата: