summaryrefslogtreecommitdiffstats
path: root/src/test/isolation/expected/vacuum-reltuples.out
blob: cdbe7f3a6075a33a6a4118f4aadfb36ddc6a8ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Parsed test spec with 2 sessions

starting permutation: modify vac stats
step modify: 
    insert into smalltbl select max(id)+1 from smalltbl;

step vac: 
    vacuum smalltbl;

step stats: 
    select relpages, reltuples from pg_class
     where oid='smalltbl'::regclass;

relpages|reltuples
--------+---------
       1|       21
(1 row)


starting permutation: modify open fetch1 vac close stats
step modify: 
    insert into smalltbl select max(id)+1 from smalltbl;

step open: 
    begin;
    declare c1 cursor for select 1 as dummy from smalltbl;

step fetch1: 
    fetch next from c1;

dummy
-----
    1
(1 row)

step vac: 
    vacuum smalltbl;

step close: 
    commit;

step stats: 
    select relpages, reltuples from pg_class
     where oid='smalltbl'::regclass;

relpages|reltuples
--------+---------
       1|       20
(1 row)


starting permutation: modify vac stats
step modify: 
    insert into smalltbl select max(id)+1 from smalltbl;

step vac: 
    vacuum smalltbl;

step stats: 
    select relpages, reltuples from pg_class
     where oid='smalltbl'::regclass;

relpages|reltuples
--------+---------
       1|       21
(1 row)