Re: Pluggable toaster

From: Nikita Malakhov <hukutoc(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Teodor Sigaev <teodor(at)sigaev(dot)ru>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Pluggable toaster
Date: 2022-01-20 18:24:56
Message-ID: CAN-LCVO3z1mqbVTNDP2XXgGQu90ns-MJqqy6PtRQww2i9A=zzg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The patch provides assigning toaster to a data column separately. Assigning
to a data type is considered worthy
but is also a topic for further discussion and is not included in patch.
We've been thinking how to integrate AMs and custom toasters, so any
thoughts are welcome.

Regards,

On Thu, Jan 20, 2022 at 7:00 PM Robert Haas <robertmhaas(at)gmail(dot)com> wrote:

> On Thu, Dec 30, 2021 at 11:40 AM Teodor Sigaev <teodor(at)sigaev(dot)ru> wrote:
> > We are working on custom toaster for JSONB [1], because current TOAST is
> > universal for any data type and because of that it has some
> disadvantages:
> > - "one toast fits all" may be not the best solution for particular
> > type or/and use cases
> > - it doesn't know the internal structure of data type, so it cannot
> > choose an optimal toast strategy
> > - it can't share common parts between different rows and even
> > versions of rows
>
> I agree ... but I'm also worried about what happens when we have
> multiple table AMs. One can imagine a new table AM that is
> specifically optimized for TOAST which can be used with an existing
> heap table. One can imagine a new table AM for the main table that
> wants to use something different for TOAST. So, I don't think it's
> right to imagine that the choice of TOASTer depends solely on the
> column data type. I'm not really sure how this should work exactly ...
> but it needs careful thought.
>
> --
> Robert Haas
> EDB: http://www.enterprisedb.com
>
>
>

--
Regards,

--
Nikita Malakhov
Postgres Professional
https://postgrespro.ru/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bossart, Nathan 2022-01-20 19:15:08 Re: Avoid erroring out when unable to remove or parse logical rewrite files to save checkpoint work
Previous Message Bossart, Nathan 2022-01-20 17:25:40 Re: Document atthasmissing default optimization avoids verification table scan