From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make TupleTableSlots extensible, finish split of existing slot t
Date: Sat, 17 Nov 2018 00:42:00 +0000
Message-ID: <E1gNogS-0007Wc-9J@gemulon.postgresql.org> (raw)
Make TupleTableSlots extensible, finish split of existing slot type.
This commit completes the work prepared in 1a0586de36, splitting the
old TupleTableSlot implementation (which could store buffer, heap,
minimal and virtual slots) into four different slot types. As
described in the aforementioned commit, this is done with the goal of
making tuple table slots extensible, to allow for pluggable table
access methods.
To achieve runtime extensibility for TupleTableSlots, operations on
slots that can differ between types of slots are performed using the
TupleTableSlotOps struct provided at slot creation time. That
includes information from the size of TupleTableSlot struct to be
allocated, initialization, deforming etc. See the struct's definition
for more detailed information about callbacks TupleTableSlotOps.
I decided to rename TTSOpsBufferTuple to TTSOpsBufferHeapTuple and
ExecCopySlotTuple to ExecCopySlotHeapTuple, as that seems more
consistent with other naming introduced in recent patches.
There's plenty optimization potential in the slot implementation, but
according to benchmarking the state after this commit has similar
performance characteristics to before this set of changes, which seems
sufficient.
There's a few changes in execReplication.c that currently need to poke
through the slot abstraction, that'll be repaired once the pluggable
storage patchset provides the necessary infrastructure.
Author: Andres Freund and Ashutosh Bapat, with changes by Amit Khandekar
Discussion: https://postgr.es/m/20181105210039.hh4vvi4vwoq5ba2q@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4da597edf1bae0cf0453b5ed6fc4347b6334dfe1
Modified Files
--------------
src/backend/access/common/heaptuple.c | 184 +---
src/backend/catalog/index.c | 4 +-
src/backend/commands/copy.c | 2 +-
src/backend/commands/createas.c | 2 +-
src/backend/commands/matview.c | 2 +-
src/backend/executor/execCurrent.c | 18 +-
src/backend/executor/execExprInterp.c | 16 +-
src/backend/executor/execReplication.c | 40 +-
src/backend/executor/execScan.c | 4 +-
src/backend/executor/execTuples.c | 1588 +++++++++++++++++++----------
src/backend/executor/nodeAgg.c | 9 +-
src/backend/executor/nodeBitmapHeapscan.c | 2 +-
src/backend/executor/nodeHashjoin.c | 17 +-
src/backend/executor/nodeIndexscan.c | 2 +-
src/backend/executor/nodeModifyTable.c | 2 +-
src/backend/executor/nodeSamplescan.c | 2 +-
src/backend/executor/nodeSeqscan.c | 2 +-
src/backend/executor/nodeSetOp.c | 4 +-
src/backend/executor/nodeSubplan.c | 4 +-
src/backend/executor/nodeTidscan.c | 2 +-
src/backend/executor/spi.c | 2 +-
src/backend/jit/llvm/llvmjit.c | 4 +
src/backend/jit/llvm/llvmjit_deform.c | 45 +-
src/backend/jit/llvm/llvmjit_types.c | 2 +
src/include/access/htup_details.h | 2 -
src/include/executor/tuptable.h | 409 ++++++--
src/include/jit/llvmjit.h | 2 +
27 files changed, 1505 insertions(+), 867 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: andres@anarazel.de
Subject: Re: pgsql: Make TupleTableSlots extensible, finish split of existing slot t
In-Reply-To: <E1gNogS-0007Wc-9J@gemulon.postgresql.org>
References: <E1gNogS-0007Wc-9J@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