Re: Preventing free space from being reused - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Preventing free space from being reused
Date
Msg-id 1607744.1613166193@sss.pgh.pa.us
Whole thread Raw
In response to Preventing free space from being reused  (Noah Bergbauer <noah@statshelix.com>)
Responses Re: Preventing free space from being reused
List 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 by date:

Previous
From: Thomas Munro
Date:
Subject: Experimenting with redo batching
Next
From: Noah Bergbauer
Date:
Subject: Re: Preventing free space from being reused