diff options
| author | Simon Riggs <simon@2ndQuadrant.com> | 2012-10-18 19:41:40 +0100 |
|---|---|---|
| committer | Simon Riggs <simon@2ndQuadrant.com> | 2012-10-18 19:41:40 +0100 |
| commit | 160984c8c84afb1406acd7ab71982bcae26b07fe (patch) | |
| tree | 8a98fa1c4a6fcf48092a0e050645eb2cd95a5b7f /src/test/isolation/expected | |
| parent | 2f0e480d02cde469e64d03dc8ca198cbfd597640 (diff) | |
| download | postgresql-160984c8c84afb1406acd7ab71982bcae26b07fe.tar.gz | |
Isolation test for DROP INDEX CONCURRENTLY
for recent concurrent changes.
Abhijit Menon-Sen
Diffstat (limited to 'src/test/isolation/expected')
| -rw-r--r-- | src/test/isolation/expected/drop-index-concurrently-1.out | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/test/isolation/expected/drop-index-concurrently-1.out b/src/test/isolation/expected/drop-index-concurrently-1.out new file mode 100644 index 0000000000..8bedf13d33 --- /dev/null +++ b/src/test/isolation/expected/drop-index-concurrently-1.out @@ -0,0 +1,40 @@ +Parsed test spec with 3 sessions + +starting permutation: noseq prepi preps begin explaini explains select2 drop insert2 end2 selecti selects end +step noseq: SET enable_seqscan = false; +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) +step explains: EXPLAIN (COSTS OFF) EXECUTE getrow_seq; +QUERY PLAN + +Sort + Sort Key: id, data + -> Seq Scan on test_dc + Filter: ((data)::text = '34'::text) +step select2: SELECT * FROM test_dc WHERE data=34 ORDER BY id,data; +id data + +34 34 +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 +step selects: EXECUTE getrow_seq; +id data + +34 34 +134 34 +step end: COMMIT; +step drop: <... completed> |
