Re: Apply the "LIMIT 1" optimization to partial DISTINCT

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Re: Apply the "LIMIT 1" optimization to partial DISTINCT
Дата
Msg-id CAMbWs49VLFhWcx7i2L2XPypDD=BmTiPZvYe+SxAvyg+gVGQ4wQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Apply the "LIMIT 1" optimization to partial DISTINCT  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers

On Wed, Jan 31, 2024 at 12:26 PM David Rowley <dgrowleyml@gmail.com> wrote:
On Fri, 26 Jan 2024 at 21:14, David Rowley <dgrowleyml@gmail.com> wrote:
> However, having said that. Parallel plans are often picked when there
> is some highly selective qual as parallel_tuple_cost has to be applied
> to fewer tuples for such plans, so probably this is worth doing.

I was messing around with your test case and didn't manage to get any
plan that had any rows to use the partial path with the LIMIT.  I
ended up dropping the test that was checking the results were empty as
I didn't think it added much more value over the EXPLAIN output.

I pushed the result.

Thanks for pushing it!

Thanks
Richard

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

Предыдущее
От: Richard Guo
Дата:
Сообщение: Re: Some revises in adding sorting path
Следующее
От: "Zhijie Hou (Fujitsu)"
Дата:
Сообщение: RE: Synchronizing slots from primary to standby