Re: Buglet in "Sort Method" explain output in degenerate case

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Buglet in "Sort Method" explain output in degenerate case
Дата
Msg-id 24125.1188672605@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Buglet in "Sort Method" explain output in degenerate case  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
I wrote:
> Hmm.  Actually, given that sort_bounded_heap() is only conditionally
> invoked, *both* of the state updates it makes are bogus.

Er, make that three state updates: its REVERSEDIRECTION() operation is
being skipped as well.  That's not critical now, but might be someday.

Rather than moving all that up to tuplesort_performsort, it seems better
to leave it where it is, and instead remove the premature optimization
of trying to skip sort_bounded_heap.  The number of cycles saved that
way is tiny anyway...

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Buglet in "Sort Method" explain output in degenerate case
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: Buglet in "Sort Method" explain output in degenerate case