forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6061ade
Compare only major versions in AdjustUpgrade.pm
Because PostgreSQL::Version is very nuanced about development versionnumbers, the comparison to 16beta2 makes it think that that release isolder than 16, therefore applying a database tweak that doesn't workthere (the comparison is only supposed to match when run on version 15).As suggested by Andrew Dunstan, fix by having AdjustUpgrade.pm publicmethods create a separate PostgreSQL::Version object to use for thesecomparisons, that only carries the major version number.While at it, have the same methods ensure that the objects given are ofthe expected type.Backpatch to 16. This module goes all the way back to 9.2, but there'sprobably no need for this fix except where betas still live.Co-authored-by: Andrew Dunstan <andrew@dunslane.net>Discussion:https://postgr.es/m/20230719110504.zbu74o54bqqlsufb@alvherre.pgsql1 parente35cc3b commit6061ade
1 file changed
+18
-0
lines changedLines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
79 | 87 |
| |
80 | 88 |
| |
81 | 89 |
| |
| |||
262 | 270 |
| |
263 | 271 |
| |
264 | 272 |
| |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
265 | 278 |
| |
266 | 279 |
| |
267 | 280 |
| |
| |||
579 | 592 |
| |
580 | 593 |
| |
581 | 594 |
| |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
582 | 600 |
| |
583 | 601 |
| |
584 | 602 |
| |
|
0 commit comments
Comments
(0)