Postgresql website says "A dump/restore is not required for those running 14.X." (https://www.postgresql.org/docs/14/release-14-2.html#id-1.11.6.5.4)
Do I still need to use pg_upgrade or there is any other way to upgrade?
>Solution :
You only need to update the binaries using Ubuntu’s package manager and restart Postgres (apt update then apt install postgresql-14)
pg_upgrade is only needed to upgrade between major versions (e.g. from 13 to 14 or from 14 to 15). Upgrading 14.1 to 14.2 is a minor version upgrade.