Skip to content

Commit 7d3e324

Browse files
committed
Merge branch 'master' into picky_nodes (resolve conflicts)
2 parents 86e4bc1 + dc49c1d commit 7d3e324

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ endif
2727
$(EXTENSION)--$(EXTVERSION).sql: init.sql hash.sql range.sql
2828
cat $^ > $@
2929

30-
ISOLATIONCHECKS=insert_nodes for_update
30+
ISOLATIONCHECKS=insert_nodes for_update rollback_on_create_partitions
3131

3232
submake-isolation:
3333
$(MAKE) -C $(top_builddir)/src/test/isolation all
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Parsed test spec with 1 sessions
2+
3+
starting permutation: begin insert_data create_partitions rollback show_me_what_you_got
4+
step begin: BEGIN;
5+
step insert_data: INSERT INTO range_rel SELECT generate_series(1, 10000);
6+
step create_partitions: SELECT create_range_partitions('range_rel', 'id', 1, 1000);
7+
create_range_partitions
8+
9+
10
10+
WARNING: Removing 'range_rel' partitions from pg_pathman's cache
11+
step rollback: ROLLBACK;
12+
step show_me_what_you_got: EXPLAIN (COSTS OFF) SELECT * FROM range_rel;
13+
QUERY PLAN
14+
15+
Seq Scan on range_rel
16+
17+
starting permutation: begin insert_data create_partitions commit show_me_what_you_got
18+
step begin: BEGIN;
19+
step insert_data: INSERT INTO range_rel SELECT generate_series(1, 10000);
20+
step create_partitions: SELECT create_range_partitions('range_rel', 'id', 1, 1000);
21+
create_range_partitions
22+
23+
10
24+
step commit: COMMIT;
25+
step show_me_what_you_got: EXPLAIN (COSTS OFF) SELECT * FROM range_rel;
26+
QUERY PLAN
27+
28+
Append
29+
-> Seq Scan on range_rel_1
30+
-> Seq Scan on range_rel_2
31+
-> Seq Scan on range_rel_3
32+
-> Seq Scan on range_rel_4
33+
-> Seq Scan on range_rel_5
34+
-> Seq Scan on range_rel_6
35+
-> Seq Scan on range_rel_7
36+
-> Seq Scan on range_rel_8
37+
-> Seq Scan on range_rel_9
38+
-> Seq Scan on range_rel_10
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
setup
2+
{
3+
CREATE EXTENSION pg_pathman;
4+
CREATE TABLE range_rel(id serial primary key);
5+
}
6+
7+
teardown
8+
{
9+
SELECT drop_range_partitions('range_rel');
10+
DROP TABLE range_rel CASCADE;
11+
DROP EXTENSION pg_pathman;
12+
}
13+
14+
session "s1"
15+
step "begin" { BEGIN; }
16+
step "rollback" { ROLLBACK; }
17+
step "commit" { COMMIT; }
18+
step "insert_data" { INSERT INTO range_rel SELECT generate_series(1, 10000); }
19+
step "create_partitions" { SELECT create_range_partitions('range_rel', 'id', 1, 1000); }
20+
step "show_me_what_you_got" { EXPLAIN (COSTS OFF) SELECT * FROM range_rel; }
21+
22+
permutation "begin" "insert_data" "create_partitions" "rollback" "show_me_what_you_got"
23+
permutation "begin" "insert_data" "create_partitions" "commit" "show_me_what_you_got"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy