Re: Disabling Heap-Only Tuples

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Disabling Heap-Only Tuples
Дата
Msg-id 017b60a1829d3f128ae3cb0c6f3fefc74b7ca155.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Disabling Heap-Only Tuples  (Dilip Kumar <dilipbalaut@gmail.com>)
Список pgsql-hackers
On Fri, 2023-07-07 at 16:27 +0530, Dilip Kumar wrote:
> On Fri, Jul 7, 2023 at 3:48 PM Tomas Vondra <tomas.vondra@enterprisedb.com> wrote:
> > I'm imagining either a table option with a couple possible values
> > (default, non-hot, first-page, ...) or maybe something even more
> > elaborate (perhaps even a callback?).
> >
> > Now, it's not my intention to hijack this thread, but this discussion
> > reminds me one of the ideas from my "BRIN improvements" talk, about
> > maybe using BRIN indexes for routing. UPDATEs may be a major issue for
> > BRIN, making them gradually worse over time. If we could "tell"
> > RelationGetBufferForTuple() which buffers are more suitable (by looking
> > at an index, histogram or some approximate mapping), that might help.
>
> IMHO that seems like the right direction for this feature to be
> useful.

Right, I agree.  A GUC/storage parameter like "update_strategy"
that is an enum (try-hot | first-page | ...).

To preserve BRIN indexes or CLUSTERed tables, there could be an additional
"insert_strategy", but that would somehow have to be tied to a certain
index.  I think that is out of scope for this effort.

Yours,
Laurenz Albe



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

Предыдущее
От: Dilip Kumar
Дата:
Сообщение: Re: Disabling Heap-Only Tuples
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: [PATCH] Add support function for containment operators