Re: [PATCH] Check that index can return in get_actual_variable_range()

Поиск
Список
Период
Сортировка
От Maxime Schoemans
Тема Re: [PATCH] Check that index can return in get_actual_variable_range()
Дата
Msg-id D65B6A44-429E-4D75-8E96-97A2C9B860EA@enterprisedb.com
обсуждение исходный текст
Ответ на Re: [PATCH] Check that index can return in get_actual_variable_range()  (Aleksander Alekseev <aleksander@tigerdata.com>)
Ответы Re: [PATCH] Check that index can return in get_actual_variable_range()
Список pgsql-hackers
On 18 Sep 2025, at 14:31, Aleksander Alekseev <aleksander@tigerdata.com> wrote:
> Can you think of any test cases we can add to the code base?

The only idea I have would be adding a new index module in src/test/modules that has this particular property and have
atest that will hit get_actual_variable_range(). 
For example, it could be a new access method that is a copy of btree, but whose amcanreturn property is null and that
specificallysets scan->xs_itup to null in amgettuple. 

Without the patch, such a test would fail with 'ERROR: no data returned for index-only scan’, while with the patch it
wouldpass. 

Best,
Maxime Schoemans


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