Re: Feature request for adoptive indexes

Поиск
Список
Период
Сортировка
От Mark Dilger
Тема Re: Feature request for adoptive indexes
Дата
Msg-id 25CDCB9D-C22B-45E1-82D2-CBDADB08F20C@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Feature request for adoptive indexes  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Ответы Re: Feature request for adoptive indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

> On Oct 26, 2021, at 1:43 PM, Tomas Vondra <tomas.vondra@enterprisedb.com> wrote:
>
> I'm still rather skeptical about it - for such feature to be useful the prefix columns must not be very selective,
i.e.the posting trees are expected to be fairly large (e.g. 5-7k rows). It pretty much has to to require multiple
(many)index pages, in order for the "larger" btree index to be slower. And at that point I'd expect the extra overhead
tobe worse than simply defining multiple simple indexes. 

For three separate indexes, an update or delete of a single row in the indexed table would surely require changing at
leastthree pages in the indexes.  For some as-yet-ill-defined combined index type, perhaps the three entries in the
indexwould fall on the same index page often enough to reduce the I/O cost of the action?  This is all hard to
contemplatewithout a more precise description of the index algorithm. 

Perhaps the OP might want to cite a paper describing a particular index algorithm for us to review?

—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company






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

Предыдущее
От: "Bossart, Nathan"
Дата:
Сообщение: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: allowing "map" for password auth methods with clientcert=verify-full