Re: Index Onlys Scan for expressions

Поиск
Список
Период
Сортировка
От Vladimir Sitnikov
Тема Re: Index Onlys Scan for expressions
Дата
Msg-id CAB=Je-FroJAi-v8PeuDX3xW0JC8Y6RrD=bfg3uzqeOjd6zHuuw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Index Onlys Scan for expressions  (Ildar Musin <i.musin@postgrespro.ru>)
Ответы Re: Index Onlys Scan for expressions  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Ildar> Could you please try the patch and tell if it works for you?

I've tested patch6 against recent head. The patch applies with no problems.

The previous case (filter on top of i-o-s) is fixed. Great work.


However, it looks there are issues when accessing non-indexed columns.
The error is "ERROR: variable not found in subplan target list"
The case is 02_case2_fails.sql (see the gist link above)

The essence of the case is "create index on substr(vc, 1, 128)"
and assume that majority of the rows have length(vc)<128.
Under that conditions, it would be nice to do index-only-scan
and filter (like in my previous case), but detect "long" rows
and do additional recheck for them.

Vladimir

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: GiST optimizing memmoves in gistplacetopage for fixed-size updates [PoC]
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Tuplesort merge pre-reading