pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Drop index behind pg_upgrade test issue.
6+ messages / 3 participants
[nested] [flat]
* pgsql: Drop index behind pg_upgrade test issue.
@ 2021-03-11 03:02 Peter Geoghegan <pg@bowt.ie>
0 siblings, 0 replies; 6+ messages in thread
From: Peter Geoghegan @ 2021-03-11 03:02 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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 9f3665fb.
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
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/57ae7885cfe7a6301e1fd4b59c2e525ecc35cd55
Modified Files
--------------
src/test/regress/expected/btree_index.out | 1 +
src/test/regress/sql/btree_index.sql | 1 +
2 files changed, 2 insertions(+)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Drop index behind pg_upgrade test issue.
@ 2021-03-11 03:02 Peter Geoghegan <pg@bowt.ie>
2021-03-11 09:36 ` Re: pgsql: Drop index behind pg_upgrade test issue. Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 1 reply; 6+ messages in thread
From: Peter Geoghegan @ 2021-03-11 03:02 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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 9f3665fb.
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
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/006c52668ab3c93b4e18a5c53a51f28faa9603a2
Modified Files
--------------
src/test/regress/expected/btree_index.out | 1 +
src/test/regress/sql/btree_index.sql | 1 +
2 files changed, 2 insertions(+)
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Drop index behind pg_upgrade test issue.
2021-03-11 03:02 pgsql: Drop index behind pg_upgrade test issue. Peter Geoghegan <pg@bowt.ie>
@ 2021-03-11 09:36 ` Laurenz Albe <laurenz.albe@cybertec.at>
2021-03-11 16:27 ` Re: pgsql: Drop index behind pg_upgrade test issue. Tom Lane <tgl@sss.pgh.pa.us>
2021-03-11 20:55 ` Re: pgsql: Drop index behind pg_upgrade test issue. Peter Geoghegan <pg@bowt.ie>
0 siblings, 2 replies; 6+ messages in thread
From: Laurenz Albe @ 2021-03-11 09:36 UTC (permalink / raw)
To: Peter Geoghegan <pg@bowt.ie>; pgsql-committers@lists.postgresql.org
On Thu, 2021-03-11 at 03:02 +0000, Peter Geoghegan wrote:
> 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 9f3665fb.
>
> Fix the test failure by dropping the index in question.
I'd take that as an indication that Michael had a point with his
complaint[1]. Perhaps it would be better to implement one of his
ideas than to remove the test.
Yours,
Laurenz Albe
[1]: https://postgr.es/m/a3Ko3nKnBuVq@paquier.xyz
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Drop index behind pg_upgrade test issue.
2021-03-11 03:02 pgsql: Drop index behind pg_upgrade test issue. Peter Geoghegan <pg@bowt.ie>
2021-03-11 09:36 ` Re: pgsql: Drop index behind pg_upgrade test issue. Laurenz Albe <laurenz.albe@cybertec.at>
@ 2021-03-11 16:27 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-11 16:37 ` Re: pgsql: Drop index behind pg_upgrade test issue. Peter Geoghegan <pg@bowt.ie>
1 sibling, 1 reply; 6+ messages in thread
From: Tom Lane @ 2021-03-11 16:27 UTC (permalink / raw)
To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: Peter Geoghegan <pg@bowt.ie>; pgsql-committers@lists.postgresql.org
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> On Thu, 2021-03-11 at 03:02 +0000, Peter Geoghegan wrote:
>> Fix the test failure by dropping the index in question.
> I'd take that as an indication that Michael had a point with his
> complaint[1]. Perhaps it would be better to implement one of his
> ideas than to remove the test.
Strongly agree. I hadn't realized that the patch actually *removed*
the index reloption, rather than just turning it into a no-op. I think
that's a complete nonstarter. It will break pg_upgrade scenarios where
users have indexes with that option set. It's an especially bad idea
to have done it in a stable branch, but I doubt we can get away with
it even in HEAD.
regards, tom lane
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Drop index behind pg_upgrade test issue.
2021-03-11 03:02 pgsql: Drop index behind pg_upgrade test issue. Peter Geoghegan <pg@bowt.ie>
2021-03-11 09:36 ` Re: pgsql: Drop index behind pg_upgrade test issue. Laurenz Albe <laurenz.albe@cybertec.at>
2021-03-11 16:27 ` Re: pgsql: Drop index behind pg_upgrade test issue. Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-03-11 16:37 ` Peter Geoghegan <pg@bowt.ie>
0 siblings, 0 replies; 6+ messages in thread
From: Peter Geoghegan @ 2021-03-11 16:37 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-committers <pgsql-committers@lists.postgresql.org>
On Thu, Mar 11, 2021 at 8:27 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Strongly agree. I hadn't realized that the patch actually *removed*
> the index reloption, rather than just turning it into a no-op. I think
> that's a complete nonstarter. It will break pg_upgrade scenarios where
> users have indexes with that option set. It's an especially bad idea
> to have done it in a stable branch, but I doubt we can get away with
> it even in HEAD.
But I haven't removed the index reloption (or the GUC of the same
name) on the 13 branch. I just made it a no-op there, and removed the
documentation.
Evidently there is a consensus that the reloption should not have been
removed on HEAD. I'll discuss that on the other -committers thread
now.
--
Peter Geoghegan
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Drop index behind pg_upgrade test issue.
2021-03-11 03:02 pgsql: Drop index behind pg_upgrade test issue. Peter Geoghegan <pg@bowt.ie>
2021-03-11 09:36 ` Re: pgsql: Drop index behind pg_upgrade test issue. Laurenz Albe <laurenz.albe@cybertec.at>
@ 2021-03-11 20:55 ` Peter Geoghegan <pg@bowt.ie>
1 sibling, 0 replies; 6+ messages in thread
From: Peter Geoghegan @ 2021-03-11 20:55 UTC (permalink / raw)
To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
On Thu, Mar 11, 2021 at 1:36 AM Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> I'd take that as an indication that Michael had a point with his
> complaint[1]. Perhaps it would be better to implement one of his
> ideas than to remove the test.
The Postgres 11 and 12 "drop index" commits are now reverted.
Thanks
--
Peter Geoghegan
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2021-03-11 20:55 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 03:02 pgsql: Drop index behind pg_upgrade test issue. Peter Geoghegan <pg@bowt.ie>
2021-03-11 03:02 pgsql: Drop index behind pg_upgrade test issue. Peter Geoghegan <pg@bowt.ie>
2021-03-11 09:36 ` Laurenz Albe <laurenz.albe@cybertec.at>
2021-03-11 16:27 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-11 16:37 ` Peter Geoghegan <pg@bowt.ie>
2021-03-11 20:55 ` Peter Geoghegan <pg@bowt.ie>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox