Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5ad72cee
Commit
5ad72cee
authored
Oct 18, 2012
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert tests for drop index concurrently.
parent
4e206744
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
116 deletions
+0
-116
src/test/isolation/expected/drop-index-concurrently-1.out
src/test/isolation/expected/drop-index-concurrently-1.out
+0
-36
src/test/isolation/expected/drop-index-concurrently-2.out
src/test/isolation/expected/drop-index-concurrently-2.out
+0
-24
src/test/isolation/isolation_schedule
src/test/isolation/isolation_schedule
+0
-2
src/test/isolation/specs/drop-index-concurrently-1.spec
src/test/isolation/specs/drop-index-concurrently-1.spec
+0
-33
src/test/isolation/specs/drop-index-concurrently-2.spec
src/test/isolation/specs/drop-index-concurrently-2.spec
+0
-21
No files found.
src/test/isolation/expected/drop-index-concurrently-1.out
deleted
100644 → 0
View file @
4e206744
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;
step preps: PREPARE getrow_seq AS SELECT * FROM test_dc WHERE data::text=34::text;
step begin: BEGIN;
step explaini: EXPLAIN (COSTS OFF) EXECUTE getrow_idx;
QUERY PLAN
Index Scan using test_dc_data on test_dc
Index Cond: (data = 34)
step explains: EXPLAIN (COSTS OFF) EXECUTE getrow_seq;
QUERY PLAN
Seq Scan on test_dc
Filter: ((data)::text = '34'::text)
step select2: SELECT * FROM test_dc WHERE data=34;
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>
src/test/isolation/expected/drop-index-concurrently-2.out
deleted
100644 → 0
View file @
4e206744
Parsed test spec with 3 sessions
starting permutation: explain drop cancel rollback droptab selecti dropi
step explain: EXPLAIN (COSTS OFF) SELECT * FROM test_dc WHERE data=34343;
QUERY PLAN
Bitmap Heap Scan on test_dc
Recheck Cond: (data = 34343)
-> Bitmap Index Scan on test_dc_data
Index Cond: (data = 34343)
step drop: DROP INDEX CONCURRENTLY test_dc_data; <waiting ...>
step cancel: SELECT pg_cancel_backend(pid) FROM pg_stat_activity WHERE query = 'DROP INDEX CONCURRENTLY test_dc_data;';
pg_cancel_backend
t
step drop: <... completed>
error in steps cancel drop: ERROR: canceling statement due to user request
step rollback: ROLLBACK;
step droptab: DROP TABLE test_dc;
step selecti: SELECT indexrelid::regclass, indisvalid, indisready FROM pg_index WHERE indexrelid = 'test_dc_data'::regclass;
indexrelid indisvalid indisready
test_dc_data f f
step dropi: DROP INDEX test_dc_data;
src/test/isolation/isolation_schedule
View file @
5ad72cee
...
...
@@ -14,5 +14,3 @@ test: fk-contention
test: fk-deadlock
test: fk-deadlock2
test: eval-plan-qual
test: drop-index-concurrently-1
test: drop-index-concurrently-2
src/test/isolation/specs/drop-index-concurrently-1.spec
deleted
100644 → 0
View file @
4e206744
setup
{
CREATE TABLE test_dc(id serial primary key, data int);
INSERT INTO test_dc(data) SELECT * FROM generate_series(1, 100);
CREATE INDEX test_dc_data ON test_dc(data);
}
teardown
{
DROP TABLE test_dc;
}
session "s1"
step "noseq" { SET enable_seqscan = false; }
step "prepi" { PREPARE getrow_idx AS SELECT * FROM test_dc WHERE data=34; }
step "preps" { PREPARE getrow_seq AS SELECT * FROM test_dc WHERE data::text=34::text; }
step "begin" { BEGIN; }
step "explaini" { EXPLAIN (COSTS OFF) EXECUTE getrow_idx; }
step "explains" { EXPLAIN (COSTS OFF) EXECUTE getrow_seq; }
step "selecti" { EXECUTE getrow_idx; }
step "selects" { EXECUTE getrow_seq; }
step "end" { COMMIT; }
session "s2"
setup { BEGIN; }
step "select2" { SELECT * FROM test_dc WHERE data=34; }
step "insert2" { INSERT INTO test_dc(data) SELECT * FROM generate_series(1, 100); }
step "end2" { COMMIT; }
session "s3"
step "drop" { DROP INDEX CONCURRENTLY test_dc_data; }
permutation "noseq" "prepi" "preps" "begin" "explaini" "explains" "select2" "drop" "insert2" "end2" "selecti" "selects" "end"
src/test/isolation/specs/drop-index-concurrently-2.spec
deleted
100644 → 0
View file @
4e206744
setup
{
CREATE TABLE test_dc(id serial primary key, data int);
CREATE INDEX test_dc_data ON test_dc(data);
}
session "s1"
setup { BEGIN; }
step "explain" { EXPLAIN (COSTS OFF) SELECT * FROM test_dc WHERE data=34343; }
step "rollback" { ROLLBACK; }
step "droptab" { DROP TABLE test_dc; }
step "selecti" { SELECT indexrelid::regclass, indisvalid, indisready FROM pg_index WHERE indexrelid = 'test_dc_data'::regclass; }
step "dropi" { DROP INDEX test_dc_data; }
session "s2"
step "drop" { DROP INDEX CONCURRENTLY test_dc_data; }
session "s3"
step "cancel" { SELECT pg_cancel_backend(pid) FROM pg_stat_activity WHERE query = 'DROP INDEX CONCURRENTLY test_dc_data;'; }
permutation "explain" "drop" "cancel" "rollback" "droptab" "selecti" "dropi"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment