mirror of
https://github.com/postgres/postgres.git
synced 2026-02-15 16:48:17 -05:00
Fix parent node of WCO expressions in partitioned tables.
Since edd44738bc WCO expressions of partitioned tables are
initialized with the first subplan as parent. That's not correct, as
the correct context is the ModifyTableState node. That's also what is
used for RETURNING processing, initialized nearby.
This appears not to cause any visible problems for in core code, but
is problematic for in development patch.
Discussion: https://postgr.es/m/20180303043818.tnvlo243bgy7una3@alap3.anarazel.de
This commit is contained in:
parent
854dd8cff5
commit
d06aba240d
1 changed files with 1 additions and 1 deletions
|
|
@ -413,7 +413,7 @@ ExecInitPartitionInfo(ModifyTableState *mtstate,
|
|||
{
|
||||
WithCheckOption *wco = castNode(WithCheckOption, lfirst(ll));
|
||||
ExprState *wcoExpr = ExecInitQual(castNode(List, wco->qual),
|
||||
mtstate->mt_plans[0]);
|
||||
&mtstate->ps);
|
||||
|
||||
wcoExprs = lappend(wcoExprs, wcoExpr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue