# Upgrading PostgreSQL version on FreeBSD
For minimal downtime during migration, we will use `pg_upgrade` ... ocale/sr_YU.ISO8859-5
```
## Compile old and new version from ports
Replace `PSQLOLDVERSION` with major version of your existing PostgreSQL installation, and `PSQLNEWVERSION` with the new major version.
```bash
PSQLOLDVERSION=13
PSQLNEWVERSION=15
cd
nder nginx), and the port get replaced by another version (openssl111 got deleted and openssl was upgraded ... e replacing a port with another one with the same version, we can create a temporary port. I use jails so I