Re: Polyphase merge is obsolete

Поиск
Список
Период
Сортировка
Искать
От
Heikki Linnakangas
Тема
Re: Polyphase merge is obsolete
Дата
Msg-id
c3a3929c-1d91-4d9f-0f3b-93569a62cd97@iki.fi
Ответ на
Список
Дерево обсуждения
Polyphase merge is obsolete Heikki Linnakangas <hlinnaka@iki.fi>
Re: Polyphase merge is obsolete Tom Lane <tgl@sss.pgh.pa.us>
Re: Polyphase merge is obsolete Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] Polyphase merge is obsolete Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Polyphase merge is obsolete Heikki Linnakangas <hlinnaka@iki.fi>
Re: Polyphase merge is obsolete Heikki Linnakangas <hlinnaka@iki.fi>
Re: Polyphase merge is obsolete David Steele <david@pgmasters.net>
Re: Polyphase merge is obsolete David Steele <david@pgmasters.net>
Re: Polyphase merge is obsolete vignesh C <vignesh21@gmail.com>
Re: Polyphase merge is obsolete Heikki Linnakangas <hlinnaka@iki.fi>
Re: Polyphase merge is obsolete Jaime Casanova <jcasanov@systemguards.com.ec>
Re: Polyphase merge is obsolete Jaime Casanova <jcasanov@systemguards.com.ec>
Re: Polyphase merge is obsolete Heikki Linnakangas <hlinnaka@iki.fi>
Re: Polyphase merge is obsolete John Naylor <john.naylor@enterprisedb.com>
Re: Polyphase merge is obsolete Heikki Linnakangas <hlinnaka@iki.fi>
Re: Polyphase merge is obsolete Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Polyphase merge is obsolete Heikki Linnakangas <hlinnaka@iki.fi>
Re: Polyphase merge is obsolete Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Polyphase merge is obsolete Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Polyphase merge is obsolete Heikki Linnakangas <hlinnaka@iki.fi>
Re: Polyphase merge is obsolete Peter Geoghegan <pg@bowt.ie>
Re: Polyphase merge is obsolete Zhihong Yu <zyu@yugabyte.com>
Re: Polyphase merge is obsolete Peter Geoghegan <pg@heroku.com>
Re: [HACKERS] Polyphase merge is obsolete Peter Geoghegan <pg@heroku.com>
Re: [HACKERS] Polyphase merge is obsolete Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] Polyphase merge is obsolete Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] Polyphase merge is obsolete Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Polyphase merge is obsolete Peter Geoghegan <pg@bowt.ie>
On 16/01/2023 12:23, Peter Eisentraut wrote:
> On 21.11.22 10:29, Peter Eisentraut wrote:
>> On 21.11.22 00:57, Heikki Linnakangas wrote:
>>> On 19/11/2022 13:00, Peter Eisentraut wrote:
>>>> AFAICT, this thread updated the API of LogicalTapeSetCreate() in PG15,
>>>> but did not adequately update the function header comment.  The comment
>>>> still mentions the "shared" argument, which has been removed.  There is
>>>> a new "preallocate" argument that is not mentioned at all.  Also, it's
>>>> not easy to match the actual callers to the call variants described in
>>>> the comment.  Could someone who remembers this work perhaps look this
>>>> over and update the comment?
>>>
>>> Is the attached more readable?
>>
>> That looks better, thanks.
>>
>>> I'm not 100% sure of the "preallocate" argument. If I understand
>>> correctly, you should pass true if you are writing multiple tapes at
>>> the same time, and false otherwise. HashAgg passed true, tuplesort
>>> passes false. However, it's not clear to me why we couldn't just
>>> always do the preallocation. It seems pretty harmless even if it's not
>>> helpful. Or do it when there are multiple writer tapes, and not
>>> otherwise. The parameter was added in commit 0758964963 so presumably
>>> there was a reason, but at a quick glance at the thread that led to
>>> that commit, I couldn't see what it was.
>>
>> Right, these are the kinds of questions such a comment ought to answer.
>>
>> Let's see if anyone chimes in here, otherwise let's complain in the
>> original thread, since it had nothing to do with this one.
> 
> So nothing has happened.  Let's get your changes about the removed
> "shared" argument committed, and we can figure out the "preallocated"
> thing separately.

Ok, pushed. I included the brief comment on "preallocated", but it would 
be nice to improve it further, per the above discussion.

Thanks!

- Heikki



В списке pgsql-hackers по дате отправления
От: Egor Rogov
Дата:
От: houzj.fnst@fujitsu.com
Дата:
FAQ