pg_malloc0() instead of pg_malloc()+memset()

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема pg_malloc0() instead of pg_malloc()+memset()
Дата
Msg-id vN0OodBPkKs7g2Z1uyk3CUEmhdtspHgYCImhlmSxv1Xn6nY1ZnaaGHL8EWUIQ-NEv36tyc4G5-uA3UXUF2l4sFXtK_EQgLN1hcgunlFVKhA=@yesql.se
обсуждение исходный текст
Ответы Re: pg_malloc0() instead of pg_malloc()+memset()
Список pgsql-hackers
When reading another codepath, I happened to notice a few codepaths where we do
pg_malloc() immediately followed by a memset( ..  0, ..), without there being a
justification (that I can see) for not using pg_malloc0() instead. The attached
patch changes to pg_malloc0(), and passes make check.

cheers ./daniel


Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pg_basebackup ignores the existing data directory permissions
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: GiST VACUUM