Re: tableam vs. TOAST

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Prabhat Sahu <prabhat(dot)sahu(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: tableam vs. TOAST
Date: 2019-09-06 14:59:54
Message-ID: CA+Tgmoa-hTDuntR_RKCvhh=sZcDc500Qd_3=BBgbDZ2ny4YrhQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Sep 5, 2019 at 4:07 PM Andres Freund <andres(at)anarazel(dot)de> wrote:
> Yea, makes sense to me.

OK, done. Here's the remaining patches again, with a slight update to
the renaming patch (now 0002). In the last version, I renamed
toast_insert_or_update to heap_toast_insert_or_update but did not
rename toast_delete to heap_toast_delete. Actually, I'm not seeing
any particular reason not to go ahead and push the renaming patch at
this point also. I guess there's a question as to whether I should
more aggressively add "heap" to the names of the other functions in
heaptoast.h, but I'm kinda "meh" about that. It seems likely that
other AMs will need their own versions of toast_insert_or_update() and
toast_delete(), but they shouldn't really need their own version of,
say, toast_flatten_tuple_to_datum(), and the point there is that we're
building a DatumTuple, so calling it
heap_toast_flatten_tuple_to_datum() seems almost misleading. I'm
inclined to leave all that stuff alone for now.

0001 needs more thought, as discussed.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment Content-Type Size
v6-0002-Rename-some-toasting-functions-based-on-whether-t.patch application/octet-stream 18.5 KB
v6-0001-Allow-TOAST-tables-to-be-implemented-using-table-.patch application/octet-stream 36.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera from 2ndQuadrant 2019-09-06 15:02:24 Re: Unix-domain socket support on Windows
Previous Message Alvaro Herrera from 2ndQuadrant 2019-09-06 14:52:53 Re: [proposal] de-TOAST'ing using a iterator