Skip to content

Commit 36a338b

Browse files
committed
fix isolation tests
1 parent a3ef3ed commit 36a338b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

expected/insert_nodes.out

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Parsed test spec with 2 sessions
22

33
starting permutation: s1b s1_insert_150 s1r s1_show_partitions s2b s2_insert_150 s2c s2_show_partitions
4-
create_range_partitions
4+
set_spawn_using_bgw
55

6-
1
6+
77
step s1b: BEGIN;
88
step s1_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
99
step s1r: ROLLBACK;
@@ -22,9 +22,9 @@ consrc
2222
((id >= 101) AND (id < 201))
2323

2424
starting permutation: s1b s1_insert_150 s1r s1_show_partitions s2b s2_insert_300 s2c s2_show_partitions
25-
create_range_partitions
25+
set_spawn_using_bgw
2626

27-
1
27+
2828
step s1b: BEGIN;
2929
step s1_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
3030
step s1r: ROLLBACK;
@@ -44,9 +44,9 @@ consrc
4444
((id >= 201) AND (id < 301))
4545

4646
starting permutation: s1b s1_insert_300 s1r s1_show_partitions s2b s2_insert_150 s2c s2_show_partitions
47-
create_range_partitions
47+
set_spawn_using_bgw
4848

49-
1
49+
5050
step s1b: BEGIN;
5151
step s1_insert_300: INSERT INTO range_rel SELECT generate_series(151, 300);
5252
step s1r: ROLLBACK;
@@ -67,9 +67,9 @@ consrc
6767
((id >= 201) AND (id < 301))
6868

6969
starting permutation: s1b s1_insert_150 s2b s2_insert_300 s1r s2r s2_show_partitions
70-
create_range_partitions
70+
set_spawn_using_bgw
7171

72-
1
72+
7373
step s1b: BEGIN;
7474
step s1_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
7575
step s2b: BEGIN;

specs/insert_nodes.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ setup
33
CREATE EXTENSION pg_pathman;
44
CREATE TABLE range_rel(id serial primary key);
55
SELECT create_range_partitions('range_rel', 'id', 1, 100, 1);
6+
SELECT set_spawn_using_bgw('range_rel', true);
67
}
78

89
teardown

0 commit comments

Comments
 (0)