Avoid use deprecated Windows Memory API

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Avoid use deprecated Windows Memory API
Дата
Msg-id CAEudQAo3etqZWk5tht-2TCgo6JLGAFonn1pbaWY2ioaNXiBNNA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Avoid use deprecated Windows Memory API  (Daniel Gustafsson <daniel@yesql.se>)
Re: Avoid use deprecated Windows Memory API  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
Hi.

According to:
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-localalloc
"Note The local functions have greater overhead and provide fewer features than other memory management functions. New applications should use the heap functions unless documentation states that a local function should be used. For more information, see Global and Local Functions."

LocalAlloc is deprecated.
So use HeapAlloc instead, once LocalAlloc is an overhead wrapper to HeapAlloc.

Attached a patch.

regards,
Ranier Vilela
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Use "WAL segment" instead of "log segment" consistently in user-facing messages
Следующее
От: David Rowley
Дата:
Сообщение: Re: Counterintuitive behavior when toast_tuple_target < TOAST_TUPLE_THRESHOLD