Appendix B. Troubleshooting PostgreSQL
If the module fails to enable, it can mean an incorrect module is enabled. In that case, you have to resolve dependencies manually as follows:
List the enabled modules:
# dnf module list --enabled
If the PostgreSQL 10 module has already been enabled, perform a module reset:
# dnf module reset postgresql
If a database was previously created using PostgreSQL 10, perform an upgrade:
Enable the DNF modules:
# dnf module enable satellite:el8
Install the PostgreSQL upgrade package:
# dnf install postgresql-upgrade
Perform the upgrade:
# postgresql-setup --upgrade