Re: BUG #15896: pg_upgrade from 10-or-earlier: TRAP: FailedAssertion(»!(metad->btm_version >= 3)«
Peter Geoghegan <pg@bowt.ie>
From: Peter Geoghegan <pg@bowt.ie>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>,
Christoph Berg <myon@debian.org>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>,
Teodor Sigaev <teodor@sigaev.ru>, Alexander Korotkov <a.korotkov@postgrespro.ru>
Date: 2019-07-12T03:31:37Z
Lists: pgsql-bugs
On Thu, Jul 11, 2019 at 1:16 AM Michael Paquier <michael@paquier.xyz> wrote: > So the problem has been introduced in v11 per this commit, still we > only see the issue since v12 because your code relied on a wrong > assumption. We see the issue on v12 because my code added an assertion that caught the issue. The behavior on v12 is otherwise substantively the same as on v11. Even if it was true that my commits made nbtree rely on the same "wrong assumption" more often than on v11, why would it matter? The bug is still a v11 bug. > Per what I am reading, it seems to me that we should fix > v11, but that's a live problem for v12 because of the page format > upgrade so we need to track it as an open item. The highest priority ought to be fixing the problem in the stable v11 branch. That said, there is hardly any difference between v11 and v12. It isn't possible to upgrade a B-Tree index from v2/v3 to v4 (the latest version) on-the-fly. But if in your judgement it makes sense to add a v12 open item, I have no objection. -- Peter Geoghegan
Commits
-
Fix nbtree metapage cache upgrade bug.
- d004147eb3ec 13.0 landed
- 7772dece9850 12.0 landed
- 6523f2ed3441 11.5 landed
-
Make heap TID a tiebreaker nbtree index column.
- dd299df8189b 12.0 cited
-
Fix handling of non-upgraded B-tree metapages
- 0a64b45152b5 11.0 cited
-
Skip full index scan during cleanup of B-tree indexes when possible
- 857f9c36cda5 11.0 cited