Re: patch submission: truncate trailing nulls from heap rows to reduce the size of the null bitmap

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: patch submission: truncate trailing nulls from heap rows to reduce the size of the null bitmap
Дата
Msg-id CAM-w4HPraH9w3qkEFk9GkSYMu7zq+AL-VX-tEcPkFKE7TP8E1w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: patch submission: truncate trailing nulls from heap rows to reduce the size of the null bitmap  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: Re: patch submission: truncate trailing nulls from heap rows to reduce the size of the null bitmap  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Fri, Apr 27, 2012 at 1:51 AM, Josh Berkus <josh@agliodbs.com> wrote:
> 1. Out of 700 columns, columns 301+ are all Null, so we map them away.
> 2. User updates column 688 to non-null
> 3. Suddenly we have a MUCH larger row which will no longer fit on the page.

Note that this is only actually 48 bytes more in the null bitmap in
this scenario. That's part of Tom's point that the null bitmap is so
dense that you have to be talking about some pretty huge number of
columns before the size savings are noticeable. Saving 48 bytes is
nothing to sneeze at but it's hardly an impractical update to handle.

-- 
greg


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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Future In-Core Replication
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Re: patch submission: truncate trailing nulls from heap rows to reduce the size of the null bitmap