Re: Quick-and-dirty compression for WAL backup blocks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Quick-and-dirty compression for WAL backup blocks
Дата
Msg-id 4169.1118075085@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Quick-and-dirty compression for WAL backup blocks  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: Quick-and-dirty compression for WAL backup blocks  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-hackers
Heikki Linnakangas <hlinnaka@iki.fi> writes:
> Vacuum doesn't zero out the free space between lower and upper,

It does now ;-)

> How about adding a flag to XLogRecData to indicate if the space between 
> pd_lower and pd_upper is meaningful or not? The XLogInsert caller probably 
> knows that. That way you could completely skip over the free space if 
> it's not meaningful, saving even more cycles.

Hmm ... that might not be a bad idea.  As far as I can think offhand,
all the XLogInsert callers know very well what type of page they are
working with, so they would always be able to set such a flag correctly.

Would this be institutionalizing a particular approach to data
compression in the XLogInsert API, though?
        regards, tom lane


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Quick-and-dirty compression for WAL backup blocks
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: graphical representaion of the catalogue