From f21776185648537a7bb82dfdf89991fb2e0b9ca5 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Wed, 6 Mar 2019 09:54:38 -0800 Subject: [PATCH] Fix bug in clearing of virtual tuple slot. I broke/typoed this in 4da597edf1bae0c. Astonishingly this mostly doesn't cause breakage, except when trying to change the tuple descriptor of a slot (because TTS_FLAG_FIXED is assumed to be set). Author: Andres Freund --- src/backend/executor/execTuples.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/executor/execTuples.c b/src/backend/executor/execTuples.c index 2a12bd56ea..41fa374b6f 100644 --- a/src/backend/executor/execTuples.c +++ b/src/backend/executor/execTuples.c @@ -114,7 +114,7 @@ tts_virtual_clear(TupleTableSlot *slot) pfree(vslot->data); vslot->data = NULL; - slot->tts_flags = ~TTS_FLAG_SHOULDFREE; + slot->tts_flags &= ~TTS_FLAG_SHOULDFREE; } slot->tts_nvalid = 0; -- 2.40.0