diff options
Diffstat (limited to 'src/backend/commands/trigger.c')
| -rw-r--r-- | src/backend/commands/trigger.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index d67611b2ce3..e18fe725ab7 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -2569,13 +2569,13 @@ TriggerEnabled(EState *estate, ResultRelInfo *relinfo,  		}  		if (HeapTupleIsValid(newtup))  		{ -			if (estate->es_trig_tuple_slot == NULL) +			if (estate->es_trig_newtup_slot == NULL)  			{  				oldContext = MemoryContextSwitchTo(estate->es_query_cxt); -				estate->es_trig_tuple_slot = ExecInitExtraTupleSlot(estate); +				estate->es_trig_newtup_slot = ExecInitExtraTupleSlot(estate);  				MemoryContextSwitchTo(oldContext);  			} -			newslot = estate->es_trig_tuple_slot; +			newslot = estate->es_trig_newtup_slot;  			if (newslot->tts_tupleDescriptor != tupdesc)  				ExecSetSlotDescriptor(newslot, tupdesc);  			ExecStoreTuple(newtup, newslot, InvalidBuffer, false); | 
