summaryrefslogtreecommitdiffstats
path: root/src/test/isolation/expected/drop-index-concurrently-1.out
blob: 97e1a6e77973e45556d68377da0a90521d01e858 (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
Parsed test spec with 3 sessions

starting permutation: noseq chkiso prepi preps begin explaini explains select2 drop insert2 end2 selecti selects end
step noseq: SET enable_seqscan = false;
step chkiso: SELECT (setting in ('read committed','read uncommitted')) AS is_read_committed FROM pg_settings WHERE name = 'default_transaction_isolation';
is_read_committed
-----------------
t                
(1 row)

step prepi: PREPARE getrow_idx AS SELECT * FROM test_dc WHERE data=34 ORDER BY id,data;
step preps: PREPARE getrow_seq AS SELECT * FROM test_dc WHERE data::text=34::text ORDER BY id,data;
step begin: BEGIN;
step explaini: EXPLAIN (COSTS OFF) EXECUTE getrow_idx;
QUERY PLAN                                    
----------------------------------------------
Sort                                          
  Sort Key: id                                
  ->  Index Scan using test_dc_data on test_dc
        Index Cond: (data = 34)               
(4 rows)

step explains: EXPLAIN (COSTS OFF) EXECUTE getrow_seq;
QUERY PLAN                                    
----------------------------------------------
Sort                                          
  Sort Key: id, data                          
  ->  Index Scan using test_dc_pkey on test_dc
        Filter: ((data)::text = '34'::text)   
(4 rows)

step select2: SELECT * FROM test_dc WHERE data=34 ORDER BY id,data;
id|data
--+----
34|  34
(1 row)

step drop: DROP INDEX CONCURRENTLY test_dc_data; <waiting ...>
step insert2: INSERT INTO test_dc(data) SELECT * FROM generate_series(1, 100);
step end2: COMMIT;
step selecti: EXECUTE getrow_idx;
 id|data
---+----
 34|  34
134|  34
(2 rows)

step selects: EXECUTE getrow_seq;
 id|data
---+----
 34|  34
134|  34
(2 rows)

step end: COMMIT;
step drop: <... completed>