pgsql: Verify that expected slot types match returned slot types. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Verify that expected slot types match returned slot types.
Date
Msg-id E1gNXBn-0002LW-2l@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Verify that expected slot types match returned slot types.

This is important so JIT compilation knows what kind of tuple slot the
deforming routine can expect. There's also optimization potential for
expression initialization without JIT compilation. It e.g. seems
plausible to elide EEOP_*_FETCHSOME ops entirely when dealing with
virtual slots.

Author: Andres Freund
Discussion: https://postgr.es/m/20181105210039.hh4vvi4vwoq5ba2q@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/15d8f83128e15de97de61430d0b9569f5ebecc26

Modified Files
--------------
src/backend/executor/execExprInterp.c | 52 +++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Rejigger materializing and fetching a HeapTuple from a slot.
Next
From: Andres Freund
Date:
Subject: pgsql: Add dummy field to currently empty struct TupleTableSlotOps.