Re: Compression of full-page-writes

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Compression of full-page-writes
Дата
Msg-id CAB7nPqT6Cw0rbw0YaL6KcACX4YK6foY+_ZUUADrjt5+9uyHR2A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Compression of full-page-writes  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Compression of full-page-writes
Список pgsql-hackers
On Fri, Dec 12, 2014 at 11:32 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Fri, Dec 12, 2014 at 9:15 AM, Michael Paquier
> <michael.paquier@gmail.com> wrote:
>> I just meant that the scratch buffers used to store temporarily the
>> compressed and uncompressed data should be palloc'd all the time, even
>> if the switch is off.
>
> If they're fixed size, you can just put them on the heap as static globals.
> static char space_for_stuff[65536];
Well sure :)

> Or whatever you need.
> I don't think that's a cost worth caring about.
OK, I thought it was.
-- 
Michael



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_rewind in contrib
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Compression of full-page-writes