Re: [PATCH] binary heap implementation

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [PATCH] binary heap implementation
Дата
Msg-id 20121121180454.GC6268@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: [PATCH] binary heap implementation  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 2012-11-21 12:54:30 -0500, Robert Haas wrote:
> On Wed, Nov 21, 2012 at 9:46 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> > I guess I'll take another whack at it.
> 
> New version attached.

I think the assert in replace_first should be
Assert(!binaryheap_empty(heap) && heap->has_heap_property);
instead of
Assert(heap->has_heap_property);

looks good otherwise.

Thanks,

Andres

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: autovacuum stress-testing our system
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Switching timeline over streaming replication