Commit 70b9bda6 authored by Andres Freund's avatar Andres Freund

Use a virtual rather than a heap slot in two places where that suffices.

Author: Andres Freund
Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
parent 3396138a
...@@ -1009,7 +1009,7 @@ ExecInitPartitionDispatchInfo(PartitionTupleRouting *proute, Oid partoid, ...@@ -1009,7 +1009,7 @@ ExecInitPartitionDispatchInfo(PartitionTupleRouting *proute, Oid partoid,
tupdesc, tupdesc,
gettext_noop("could not convert row type")); gettext_noop("could not convert row type"));
pd->tupslot = pd->tupmap ? pd->tupslot = pd->tupmap ?
MakeSingleTupleTableSlot(tupdesc, &TTSOpsHeapTuple) : NULL; MakeSingleTupleTableSlot(tupdesc, &TTSOpsVirtual) : NULL;
} }
else else
{ {
......
...@@ -591,7 +591,7 @@ apply_handle_insert(StringInfo s) ...@@ -591,7 +591,7 @@ apply_handle_insert(StringInfo s)
estate = create_estate_for_relation(rel); estate = create_estate_for_relation(rel);
remoteslot = ExecInitExtraTupleSlot(estate, remoteslot = ExecInitExtraTupleSlot(estate,
RelationGetDescr(rel->localrel), RelationGetDescr(rel->localrel),
&TTSOpsHeapTuple); &TTSOpsVirtual);
/* Input functions may need an active snapshot, so get one */ /* Input functions may need an active snapshot, so get one */
PushActiveSnapshot(GetTransactionSnapshot()); PushActiveSnapshot(GetTransactionSnapshot());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment