Re: Lowering the ever-growing heap->pd_lower
От | Robert Haas |
---|---|
Тема | Re: Lowering the ever-growing heap->pd_lower |
Дата | |
Msg-id | CA+TgmoZbHjMMFs1=_vqUxkFE8_+o9TtiRwA8r+sp-4J32z+nsQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Lowering the ever-growing heap->pd_lower (Peter Geoghegan <pg@bowt.ie>) |
Ответы |
Re: Lowering the ever-growing heap->pd_lower
Re: Lowering the ever-growing heap->pd_lower |
Список | pgsql-hackers |
On Fri, Apr 8, 2022 at 12:57 PM Peter Geoghegan <pg@bowt.ie> wrote: > What do you mean about wasting space? Wasting space on the stack? I > can't imagine you meant wasting space on the page, since being able to > accomodate more items on each heap page seems like it would be > strictly better, barring any unintended weird FSM issues. I meant wasting space in the page. I think that's a real concern. Imagine you allowed 1000 line pointers per page. Each one consumes 2 bytes. So now you could have ~25% of each page in the table storing dead line pointers. That sounds awful, and just running VACUUM won't fix it once it's happened, because the still-live line pointers are likely to be at the end of the line pointer array and thus truncating it won't necessarily be possible. -- Robert Haas EDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: