Skip to content

Commit 006c526

Browse files
Drop index behind pg_upgrade test issue.
The vacuum_cleanup_index_scale_factor storage parameter was set in a btree index that was previously left behind in the regression test database. As a result, the index gets tested within pg_dump and pg_restore tests, as well as pg_upgrade testing. This won't work when upgrading to Postgres 14, though, because the storage parameter was removed on that version by commit 9f3665f. Fix the test failure by dropping the index in question. Per buildfarm member crake. Discussion: https://postgr.es/m/CAH2-WzmeXYBWdhF7BMhNjhq9exsk=E1ohqBFAwzPdXJZ1XDMUA@mail.gmail.com Backpatch: 11-12 only
1 parent b463490 commit 006c526

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/test/regress/expected/btree_index.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,4 @@ select reloptions from pg_class WHERE oid = 'btree_idx1'::regclass;
179179
{vacuum_cleanup_index_scale_factor=70.0}
180180
(1 row)
181181

182+
drop index btree_idx1;

src/test/regress/sql/btree_index.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,4 @@ create index btree_idx_err on btree_test(a) with (vacuum_cleanup_index_scale_fac
111111
-- Simple ALTER INDEX
112112
alter index btree_idx1 set (vacuum_cleanup_index_scale_factor = 70.0);
113113
select reloptions from pg_class WHERE oid = 'btree_idx1'::regclass;
114+
drop index btree_idx1;

0 commit comments

Comments
 (0)