Skip to content

Commit 1671c01

Browse files
committed
Remove repeated test in contrib/amcheck
Repeating these tests adds unnecessary cycles, since no improvement in test coverage is expected. Cleanup from commit 8224de4. Peter Geoghegan
1 parent 9d0383c commit 1671c01

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

contrib/amcheck/expected/check_btree.out

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -111,27 +111,9 @@ SELECT bt_index_parent_check('bttest_multi_idx', true);
111111

112112
(1 row)
113113

114-
SELECT bt_index_parent_check('bttest_multi_idx', true);
115-
bt_index_parent_check
116-
-----------------------
117-
118-
(1 row)
119-
120-
-- repeat same checks with index made by insertions
114+
-- repeat expansive test for index built using insertions
121115
TRUNCATE bttest_multi;
122116
INSERT INTO bttest_multi SELECT i, i%2 FROM generate_series(1, 100000) as i;
123-
SELECT bt_index_check('bttest_multi_idx');
124-
bt_index_check
125-
----------------
126-
127-
(1 row)
128-
129-
SELECT bt_index_parent_check('bttest_multi_idx', true);
130-
bt_index_parent_check
131-
-----------------------
132-
133-
(1 row)
134-
135117
SELECT bt_index_parent_check('bttest_multi_idx', true);
136118
bt_index_parent_check
137119
-----------------------

contrib/amcheck/sql/check_btree.sql

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,11 @@ COMMIT;
6565
SELECT bt_index_check('bttest_multi_idx');
6666
-- more expansive test for index with included columns
6767
SELECT bt_index_parent_check('bttest_multi_idx', true);
68-
SELECT bt_index_parent_check('bttest_multi_idx', true);
6968

70-
-- repeat same checks with index made by insertions
69+
-- repeat expansive test for index built using insertions
7170
TRUNCATE bttest_multi;
7271
INSERT INTO bttest_multi SELECT i, i%2 FROM generate_series(1, 100000) as i;
73-
SELECT bt_index_check('bttest_multi_idx');
7472
SELECT bt_index_parent_check('bttest_multi_idx', true);
75-
SELECT bt_index_parent_check('bttest_multi_idx', true);
76-
7773

7874
-- cleanup
7975
DROP TABLE bttest_a;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy