diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-09-07 10:55:45 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-09-07 10:58:21 -0400 |
commit | 9d71323daca412e6e175595e1e42809fb5e1172d (patch) | |
tree | 6cb7831b90a3defb1072a4e88058212f6287bab3 /src/backend/executor/nodeModifyTable.c | |
parent | 6eb52da3948dc8bc7c8a61cbacac14823b670c58 (diff) | |
download | postgresql-9d71323daca412e6e175595e1e42809fb5e1172d.tar.gz postgresql-9d71323daca412e6e175595e1e42809fb5e1172d.zip |
Even if some partitions are foreign, allow tuple routing.
This doesn't allow routing tuple to the foreign partitions themselves,
but it permits tuples to be routed to regular partitions despite the
presence of foreign partitions in the same inheritance hierarchy.
Etsuro Fujita, reviewed by Amit Langote and by me.
Discussion: http://postgr.es/m/bc3db4c1-1693-3b8a-559f-33ad2b50b7ad@lab.ntt.co.jp
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
-rw-r--r-- | src/backend/executor/nodeModifyTable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c index e12721a9b6a..bd847787398 100644 --- a/src/backend/executor/nodeModifyTable.c +++ b/src/backend/executor/nodeModifyTable.c @@ -1854,7 +1854,7 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags) /* * Verify result relation is a valid target for the current operation */ - CheckValidResultRel(resultRelInfo->ri_RelationDesc, operation); + CheckValidResultRel(resultRelInfo, operation); /* * If there are indices on the result relation, open them and save |