File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ Parsed test spec with 2 sessions
33starting permutation: modify vac stats
44step modify:
55 insert into smalltbl select max(id)+1 from smalltbl;
6- delete from smalltbl where id in (select min(id) from smalltbl);
76
87step vac:
98 vacuum smalltbl;
@@ -14,23 +13,22 @@ step stats:
1413
1514relpages reltuples
1615
17- 1 20
16+ 1 21
1817
1918starting permutation: modify open fetch1 vac close stats
2019step modify:
2120 insert into smalltbl select max(id)+1 from smalltbl;
22- delete from smalltbl where id in (select min(id) from smalltbl);
2321
2422step open:
2523 begin;
26- declare c1 cursor for select * from smalltbl;
24+ declare c1 cursor for select 1 as dummy from smalltbl;
2725
2826step fetch1:
2927 fetch next from c1;
3028
31- id
29+ dummy
3230
33- 2
31+ 1
3432step vac:
3533 vacuum smalltbl;
3634
@@ -48,7 +46,6 @@ relpages reltuples
4846starting permutation: modify vac stats
4947step modify:
5048 insert into smalltbl select max(id)+1 from smalltbl;
51- delete from smalltbl where id in (select min(id) from smalltbl);
5249
5350step vac:
5451 vacuum smalltbl;
@@ -59,4 +56,4 @@ step stats:
5956
6057relpages reltuples
6158
62- 1 20
59+ 1 21
Original file line number Diff line number Diff line change 11# Test for vacuum's handling of reltuples when pages are skipped due
22# to page pins. We absolutely need to avoid setting reltuples=0 in
33# such cases, since that interferes badly with planning.
4+ #
5+ # Expected result in second permutation is 20 tuples rather than 21 as
6+ # for the others, because vacuum should leave the previous result
7+ # (from before the insert) in place.
48
59setup {
610 create table smalltbl
@@ -18,7 +22,7 @@ teardown {
1822session "worker"
1923step "open" {
2024 begin ;
21- declare c1 cursor for select * from smalltbl ;
25+ declare c1 cursor for select 1 as dummy from smalltbl ;
2226}
2327step "fetch1" {
2428 fetch next from c1 ;
@@ -37,7 +41,6 @@ step "vac" {
3741}
3842step "modify" {
3943 insert into smalltbl select max (id )+ 1 from smalltbl ;
40- delete from smalltbl where id in (select min (id ) from smalltbl );
4144}
4245
4346permutation "modify" "vac" "stats"
You can’t perform that action at this time.
0 commit comments