Re: Fix incorrect start up costs for WindowAgg paths (bug #17862)

Поиск
Список
Период
Сортировка
От Andy Fan
Тема Re: Fix incorrect start up costs for WindowAgg paths (bug #17862)
Дата
Msg-id CAKU4AWqDHY6KYcuKuRTpWngvgtT7aGPSZCYWjYHZv2m4CQwsNA@mail.gmail.com
обсуждение исходный текст
Ответ на Fix incorrect start up costs for WindowAgg paths (bug #17862)  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: Fix incorrect start up costs for WindowAgg paths (bug #17862)  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers


On Wed, Apr 12, 2023 at 5:04 PM David Rowley <dgrowleyml@gmail.com> wrote:

With the attached patch, that turns into:

The concept of startup_tuples for a WindowAgg looks good to me, but I 
can't follow up with the below line:

+ return clamp_row_est(partition_tuples * DEFAULT_INEQ_SEL);

# select count(*) over() from tenk1 limit 1;
 count
-------
 10000  -->  We need to scan all the tuples.  

Should we just return clamp_row_est(partition_tuples)? 
 

--
Best Regards
Andy Fan

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

Предыдущее
От: Dagfinn Ilmari Mannsåker
Дата:
Сообщение: Re: Direct I/O
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: longfin missing gssapi_ext.h