pgstat cleanup: use palloc and AllocateFile

Поиск
Список
Период
Сортировка
От Neil Conway
Тема pgstat cleanup: use palloc and AllocateFile
Дата
Msg-id 1098840050.1964.6.camel@localhost.localdomain
обсуждение исходный текст
Ответы Re: pgstat cleanup: use palloc and AllocateFile  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
This patch changes pgstat.c to use palloc(), AllocateFile() and
FreeFile() rather than malloc(), fopen() and fclose(), respectively.

I changed more_tabstat_space() (which is invoked at various times
indirectly throughout the backend) to allocate memory in its own private
memory context, rather than use malloc() -- we can't just use
CurrentMemoryContext because that may not be sufficiently long-lived.

Barring any objections I intend to apply this to HEAD tomorrow.

-Neil


Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_ctl -D canonicalization
Следующее
От: "Ed L."
Дата:
Сообщение: Re: HP-UX PA-RISC/Itanium 64-bit Patch and HP-UX 11.23 Patch