From ee0a1fc84eb29c916687dc5bd26909401d3aa8cd Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 19 Mar 2018 18:09:43 -0300 Subject: Remove unnecessary members from ModifyTableState and ExecInsert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These values can be obtained from the ModifyTable node which is already a part of both the ModifyTableState and ExecInsert. Author: Álvaro Herrera, Amit Langote Reviewed-by: Peter Geoghegan Discussion: https://postgr.es/m/20180316151303.rml2p5wffn3o6qy6@alvherre.pgsql --- src/backend/executor/execPartition.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/executor/execPartition.c') diff --git a/src/backend/executor/execPartition.c b/src/backend/executor/execPartition.c index f6fe7cd61d9..ce9a4e16cfb 100644 --- a/src/backend/executor/execPartition.c +++ b/src/backend/executor/execPartition.c @@ -363,8 +363,8 @@ ExecInitPartitionInfo(ModifyTableState *mtstate, if (partrel->rd_rel->relhasindex && leaf_part_rri->ri_IndexRelationDescs == NULL) ExecOpenIndices(leaf_part_rri, - (mtstate != NULL && - mtstate->mt_onconflict != ONCONFLICT_NONE)); + (node != NULL && + node->onConflictAction != ONCONFLICT_NONE)); /* * Build WITH CHECK OPTION constraints for the partition. Note that we -- cgit v1.2.3