Re: Preventing free space from being reused

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Preventing free space from being reused
Дата
Msg-id 1607744.1613166193@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Preventing free space from being reused  (Noah Bergbauer <noah@statshelix.com>)
Ответы Re: Preventing free space from being reused  (Noah Bergbauer <noah@statshelix.com>)
Список pgsql-hackers
Noah Bergbauer <noah@statshelix.com> writes:
> I am working on a project where I do not want Postgres to reuse free space
> in old pages (see
> https://www.postgresql.org/message-id/flat/CABjy%2BRhbFu_Hs8ZEiOzaPaJSGB9jqFF0gDU5gtwCLiurG3NLjQ%40mail.gmail.com
> for details). I found that the HEAP_INSERT_SKIP_FSM flag accomplishes this.
> For a long-term solution I see two options:
> 1. Introduce a reloption for this.
> 2. Implement it as a custom table access method in an extension.

TBH, I can't believe that this is actually a good idea.  If we introduce
a reloption that does that, we'll just be getting users complaining about
table bloat ... but probably only after they get to a state where it's
going to be horribly painful to get out of.

(My reaction to your previous thread was that it was simply a question
of blindly insisting on using BRIN indexes for a case that they're quite
badly adapted to.  The better answer is to not use BRIN.)

            regards, tom lane



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Experimenting with redo batching
Следующее
От: Noah Bergbauer
Дата:
Сообщение: Re: Preventing free space from being reused