mirror of https://github.com/citusdata/citus.git
Normalize tests: shard table names for multi_subtransactions
parent
883ee9121f
commit
0c23caeb75
|
@ -25,8 +25,8 @@ s/"(referencing_table_0_|referenced_table2_)[0-9]+"/"\1xxxxxxx"/g
|
||||||
s/\(id\)=\([0-9]+\)/(id)=(X)/g
|
s/\(id\)=\([0-9]+\)/(id)=(X)/g
|
||||||
s/\(ref_id\)=\([0-9]+\)/(ref_id)=(X)/g
|
s/\(ref_id\)=\([0-9]+\)/(ref_id)=(X)/g
|
||||||
|
|
||||||
## shard table names for multi_subtransactions
|
# shard table names for multi_subtransactions
|
||||||
#s/"t2_[0-9]+"/"t2_xxxxxxx"/g
|
s/"t2_[0-9]+"/"t2_xxxxxxx"/g
|
||||||
#
|
#
|
||||||
## shard table names for custom_aggregate_support
|
## shard table names for custom_aggregate_support
|
||||||
#s/ daily_uniques_[0-9]+ / daily_uniques_xxxxxxx /g
|
#s/ daily_uniques_[0-9]+ / daily_uniques_xxxxxxx /g
|
||||||
|
|
|
@ -207,28 +207,28 @@ with r AS (
|
||||||
update t1 set b = b - 10
|
update t1 set b = b - 10
|
||||||
returning *
|
returning *
|
||||||
) insert into t2 select * from r;
|
) insert into t2 select * from r;
|
||||||
ERROR: new row for relation "t2_1190005" violates check constraint "t2_b_check"
|
ERROR: new row for relation "t2_xxxxxxx" violates check constraint "t2_b_check"
|
||||||
rollback to savepoint s1;
|
rollback to savepoint s1;
|
||||||
savepoint s2;
|
savepoint s2;
|
||||||
with r AS (
|
with r AS (
|
||||||
update t2 set b = b - 10
|
update t2 set b = b - 10
|
||||||
returning *
|
returning *
|
||||||
) insert into t1 select * from r;
|
) insert into t1 select * from r;
|
||||||
ERROR: new row for relation "t2_1190004" violates check constraint "t2_b_check"
|
ERROR: new row for relation "t2_xxxxxxx" violates check constraint "t2_b_check"
|
||||||
rollback to savepoint s2;
|
rollback to savepoint s2;
|
||||||
savepoint s3;
|
savepoint s3;
|
||||||
with r AS (
|
with r AS (
|
||||||
insert into t2 select i, i+1 from generate_series(-10,-5) i
|
insert into t2 select i, i+1 from generate_series(-10,-5) i
|
||||||
returning *
|
returning *
|
||||||
) insert into t1 select * from r;
|
) insert into t1 select * from r;
|
||||||
ERROR: new row for relation "t2_1190004" violates check constraint "t2_b_check"
|
ERROR: new row for relation "t2_xxxxxxx" violates check constraint "t2_b_check"
|
||||||
rollback to savepoint s3;
|
rollback to savepoint s3;
|
||||||
savepoint s4;
|
savepoint s4;
|
||||||
with r AS (
|
with r AS (
|
||||||
insert into t1 select i, i+1 from generate_series(-10,-5) i
|
insert into t1 select i, i+1 from generate_series(-10,-5) i
|
||||||
returning *
|
returning *
|
||||||
) insert into t2 select * from r;
|
) insert into t2 select * from r;
|
||||||
ERROR: new row for relation "t2_1190005" violates check constraint "t2_b_check"
|
ERROR: new row for relation "t2_xxxxxxx" violates check constraint "t2_b_check"
|
||||||
rollback to savepoint s4;
|
rollback to savepoint s4;
|
||||||
with r AS (
|
with r AS (
|
||||||
update t2 set b = b + 1
|
update t2 set b = b + 1
|
||||||
|
|
Loading…
Reference in New Issue