Bug 2411778
| Summary: | postgresql-upgrade fails for F42==>F43 because it only ships N−1 (17) while system was on 16 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Gerald Cox <gbcox> |
| Component: | postgresql18 | Assignee: | Filip Januš <fjanus> |
| Status: | NEW --- | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 43 | CC: | anezbeda, emmanuel, fjanus, fweimer, kevin, ndavidov |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | commonbugs | ||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Gerald Cox
2025-11-01 19:03:16 UTC
Lots of folks are hitting this. ;( Adding commonbugs to whiteboard. You should be able to work around things by something like: % sudo dnf install postgresql17-server postgresql17-upgrade --allowerasing (this will replace postgresql package that is version 18) % sudo -u postgres postgresql-upgrade /var/lib/pgsql/data If you then want to move on to 18: % systemctl stop postgresql % sudo -u postgres pg_checksums -D /var/lib/pgsql/data -e -P (18 defaults to checksums on, you need to have them before you can upgrade) % sudo dnf install postgresql-server postgresql-upgrade --allowerasing % sudo -u postgres postgresql-upgrade /var/lib/pgsql/data (untested, please backup your database before trying) Yes, this is one option to migrate to 17 and then to 18. I will try to find a more suitable solution. https://tso.bzb.us/2025/11/postgresql-upgrade-fedora-42.html The above link gives full instructions. (In reply to Kevin Fenzi from comment #1) > % systemctl stop postgresql > % sudo -u postgres pg_checksums -D /var/lib/pgsql/data -e -P > (18 defaults to checksums on, you need to have them before you can upgrade) > % sudo dnf install postgresql-server postgresql-upgrade --allowerasing > % sudo -u postgres postgresql-upgrade /var/lib/pgsql/data Something like this might better than enabling checksums, especially for large databases or if the file system already performs checksumming: # PGSETUP_INITDB_OPTIONS=--no-data-checksums postgresql-setup --upgrade |