Re: GROUP BY ROLLUP queries on views trigger full table scans (index usage not optimized)

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Re: GROUP BY ROLLUP queries on views trigger full table scans (index usage not optimized)
Дата
Msg-id CAMbWs4-jteRUuZ63p3yyHG6=ggV9a3cNj_vMuYBrURhyXdMg_w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: GROUP BY ROLLUP queries on views trigger full table scans (index usage not optimized)  (Richard Guo <guofenglinux@gmail.com>)
Ответы Re: GROUP BY ROLLUP queries on views trigger full table scans (index usage not optimized)
Список pgsql-bugs
On Mon, Dec 8, 2025 at 3:10 PM Richard Guo <guofenglinux@gmail.com> wrote:
> As a viable alternative, maybe we can use a lightweight, read-only
> expression walker on the operand tree first to detect the presence of
> any PHVs.  We only trigger the expensive deep mutation if this
> preliminary check confirms that it is actually necessary.

Here is an updated patch along these lines.

Haowu, could you please verify if it fixes your query?

- Richard

Вложения

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