]> granicus.if.org Git - postgresql/commitdiff
Don't superfluously materialize slot after DELETE from an FDW.
authorAndres Freund <andres@anarazel.de>
Thu, 28 Feb 2019 21:57:49 +0000 (13:57 -0800)
committerAndres Freund <andres@anarazel.de>
Thu, 28 Feb 2019 22:54:12 +0000 (14:54 -0800)
Previously that was needed to safely store the table oid, but after
b8d71745eac0a127 that's not necessary anymore.

Author: Andres Freund

src/backend/executor/nodeModifyTable.c

index 76175aaa6bed21b496d9fcb4189d1314d43a4ee3..267ecc7c7f769c765e7c8e8b467bb95c137ad643 100644 (file)
@@ -655,7 +655,6 @@ ExecDelete(ModifyTableState *mtstate,
                 */
                if (TTS_EMPTY(slot))
                        ExecStoreAllNullTuple(slot);
-               ExecMaterializeSlot(slot);
 
                slot->tts_tableOid = RelationGetRelid(resultRelationDesc);
        }