Skip to content

Upgrade to version 4.3.1 fails because of postgresql version #19566

Discussion options

You must be logged in to vote

This is how I did it in Debian last time I upgraded it:

https://majornetwork.net/2024/04/postgresql-upgrades-on-debian-linux/

Copy:

  • Backup the database (this is important if something goes wrong!)
  • Upgrade the system normally (here I’ll use Debian 11 (Bullseye) to 12 (Bookworm) upgrade as en example)
  • See that both [email protected] and [email protected] are running (both TCP ports 5432 and 5433 are shown listening with ss -ntl command)
    • PostgreSQL 13 is from Debian 11, PostgreSQL 15 is from Debian 12
  • Run sudo pg_dropcluster --stop 15 main
  • Run sudo pg_upgradecluster 13 main
  • Check that everything works fine
  • Check dpkg -l postgresql\* for any old version packages installe…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GeertReijnders
Comment options

Answer selected by GeertReijnders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants