I'm doing do-release-upgrade
now, and it seems it downloaded postgresql-12 package '__') was it automatically done? because I saw there's a tutorial to upgrade manually postgresql-10 to postgresql-12 here
UPDATE
so I've done the do-release-upgrade
and both version runs (postgresql 12 on different port), then I did the data migration steps on this link still running (not yet completed) about 3.25 hours for 51GB of data.
when you do an upgrade of the ubuntu OS version, many other packages are also updated
you can see the version of the postgresql package in each ubuntu release here : https://packages.ubuntu.com/search?keywords=postgresql
at this moment : 18.04 -> postgres 10 & 20.04 : postgres 12
Let's teach you how to use the
rmadison
script, included in thedevscripts
package.It queries the Ubuntu repositories for the current versions of a package in each release of Ubuntu. This is the same information that's shown on the http://packages.ubuntu.com website...but may be faster for folks who need to check frequently.
Let's try it on
postgresql
The output tells us that:
This means that a
do-release-upgrade
from 18.04 to 20.04 of thepostgresql
package will indeed migrate you from version 10 to version 12 automatically.Look at the last two lines of output: A do-release-upgrade from Groovy (20.10) to Hirsute (21.04) will migrate you from version 12 to version 13.