pgsql: Make TupleTableSlots extensible,finish split of existing slot t

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Make TupleTableSlots extensible,finish split of existing slot t
Дата
Msg-id E1gNogS-0007Wc-9J@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgsql: Redesign initialization of partition routing structures
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Fix some spurious new compiler warnings in MSVC.