| 1 |
Parsed test spec with 3 sessions |
| 2 |
|
| 3 |
starting permutation: chkiso prepi preps begin disableseq explaini enableseq explains select2 drop insert2 end2 selecti selects end |
| 4 |
step chkiso: SELECT (setting in ('read committed','read uncommitted')) AS is_read_committed FROM pg_settings WHERE name = 'default_transaction_isolation'; |
| 5 |
is_read_committed |
| 6 |
----------------- |
| 7 |
f |
| 8 |
(1 row) |
| 9 |
|
| 10 |
step prepi: PREPARE getrow_idxscan AS SELECT * FROM test_dc WHERE data = 34 ORDER BY id,data; |
| 11 |
step preps: PREPARE getrow_seqscan AS SELECT * FROM test_dc WHERE data = 34 ORDER BY id,data; |
| 12 |
step begin: BEGIN; |
| 13 |
step disableseq: SET enable_seqscan = false; |
| 14 |
step explaini: EXPLAIN (COSTS OFF) EXECUTE getrow_idxscan; |
| 15 |
QUERY PLAN |
| 16 |
---------------------------------------------- |
| 17 |
Sort |
| 18 |
Sort Key: id |
| 19 |
-> Index Scan using test_dc_data on test_dc |
| 20 |
Index Cond: (data = 34) |
| 21 |
(4 rows) |
| 22 |
|
| 23 |
step enableseq: SET enable_seqscan = true; |
| 24 |
step explains: EXPLAIN (COSTS OFF) EXECUTE getrow_seqscan; |
| 25 |
QUERY PLAN |
| 26 |
--------------------------- |
| 27 |
Sort |
| 28 |
Sort Key: id |
| 29 |
-> Seq Scan on test_dc |
| 30 |
Filter: (data = 34) |
| 31 |
(4 rows) |
| 32 |
|
| 33 |
step select2: SELECT * FROM test_dc WHERE data = 34 ORDER BY id,data; |
| 34 |
id|data |
| 35 |
--+---- |
| 36 |
34| 34 |
| 37 |
(1 row) |
| 38 |
|
| 39 |
step drop: DROP INDEX CONCURRENTLY test_dc_data; <waiting ...> |
| 40 |
step insert2: INSERT INTO test_dc(data) SELECT * FROM generate_series(1, 100); |
| 41 |
step end2: COMMIT; |
| 42 |
step selecti: EXECUTE getrow_idxscan; |
| 43 |
id|data |
| 44 |
--+---- |
| 45 |
34| 34 |
| 46 |
(1 row) |
| 47 |
|
| 48 |
step selects: EXECUTE getrow_seqscan; |
| 49 |
id|data |
| 50 |
--+---- |
| 51 |
34| 34 |
| 52 |
(1 row) |
| 53 |
|
| 54 |
step end: COMMIT; |
| 55 |
step drop: <... completed> |