diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-03-19 18:09:43 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-03-19 18:09:43 -0300 |
commit | ee0a1fc84eb29c916687dc5bd26909401d3aa8cd (patch) | |
tree | 45ec81fd0420ee6863bef71a884a9cf2eee6ae56 /src/backend/executor/execPartition.c | |
parent | 839a8eb2b3df68e105fb4f7a72e71652d6becc7a (diff) | |
download | postgresql-ee0a1fc84eb29c916687dc5bd26909401d3aa8cd.tar.gz postgresql-ee0a1fc84eb29c916687dc5bd26909401d3aa8cd.zip |
Remove unnecessary members from ModifyTableState and ExecInsert
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
Diffstat (limited to 'src/backend/executor/execPartition.c')
-rw-r--r-- | src/backend/executor/execPartition.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |