Re: memory leak in e94568ecc10 (pre-reading in external sort)

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: memory leak in e94568ecc10 (pre-reading in external sort)
Дата
Msg-id CAM3SWZTGkT_2B_3uG0n3XtDjTEY10QLrgkqUf8x4Vms3pODkxw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: memory leak in e94568ecc10 (pre-reading in external sort)  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
On Thu, Oct 6, 2016 at 8:44 AM, Peter Geoghegan <pg@heroku.com> wrote:
> Besides, what I propose to do is really exactly the same as what you
> also want to do, except it avoids actually changing state->maxTapes.
> We'd just pass down what you propose to assign to state->maxTapes
> directly, which differs (and not just in the common case where there
> are inactive tapes -- it's always at least off-by-one). Right?

What I mean is that you should pass down numTapes alongside
numInputTapes. The function init_tape_buffers() could either have an
additional argument (numTapes), or derive numTapes itself.


-- 
Peter Geoghegan



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fast AT ADD COLUMN with DEFAULTs
Следующее
От: Serge Rielau
Дата:
Сообщение: Re: Fast AT ADD COLUMN with DEFAULTs