Re: Memory Accounting

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory Accounting
Дата
Msg-id 10470.1570215529@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Memory Accounting  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
Peter Geoghegan <pg@bowt.ie> writes:
> On Fri, Oct 4, 2019 at 7:32 AM Jeff Davis <pgsql@j-davis.com> wrote:
>> The patch has been floating around for a very long time, so I don't
>> remember exactly why I chose a signed value. Sorry.

> I am reminded of the fact that int64 is used to size buffers within
> tuplesort.c, because it needs to support negative availMem sizes --
> when huge allocations were first supported, tuplesort.c briefly used
> "Size", which didn't work. Perhaps it had something to do with that.

I wonder if we should make that use ssize_t instead.  Probably
not worth the trouble.

            regards, tom lane



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Memory Accounting
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem with repalloc downsizing patch