From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: tableam: New callback relation_fetch_toast_slice.
Date: Tue, 07 Jan 2020 19:37:20 +0000
Message-ID: <E1ioufI-0002oy-KL@gemulon.postgresql.org> (raw)
tableam: New callback relation_fetch_toast_slice.
Instead of always calling heap_fetch_toast_slice during detoasting,
invoke a table AM callback which, when the toast table is a heap
table, will be heap_fetch_toast_slice.
This makes it possible for a table AM other than heap to be used
as a TOAST table. It also completes the series of commits intended
to improve the interaction of tableam with TOAST that began with
commit 8b94dab06617ef80a0901ab103ebd8754427ef5a; detoast.c is
now, hopefully, fully AM-independent.
Patch by me, reviewed by Andres Freund and Peter Eisentraut.
Discussion: http://postgr.es/m/CA+TgmoZv-=2iWM4jcw5ZhJeL18HF96+W1yJeYrnGMYdkFFnEpQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ce242ae154dde3217971c6f262705d80999f4e00
Modified Files
--------------
src/backend/access/common/detoast.c | 199 +------------------------------
src/backend/access/heap/heapam_handler.c | 1 +
src/backend/access/heap/heaptoast.c | 182 ++++++++++++++++++++++++++++
src/include/access/heaptoast.h | 10 ++
src/include/access/tableam.h | 46 +++++++
5 files changed, 245 insertions(+), 193 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: rhaas@postgresql.org
Subject: Re: pgsql: tableam: New callback relation_fetch_toast_slice.
In-Reply-To: <E1ioufI-0002oy-KL@gemulon.postgresql.org>
References: <E1ioufI-0002oy-KL@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox