mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user