Server crash(failed assertion) when two "insert" in one SQL:
Step to reproduce:
create table t(a int, b int) partition by range(a);
create table t_p1 partition of t for values from (1) to (100);
create table t_p2 partition of t for values from (100) to (200);
create table t_p3 partition of t for values from (200) to (300);
create table b(a int, b int);
with a(a,b) as(insert into t values(3, 3) returning a, b) insert into b select * from a;
Please check it.