e old and new version from ports
Replace `PSQLOLDVERSION` with major version of your existing PostgreSQL installation, and `PSQLNEWVERSION` with the new major version.
```bash
PSQLOLDVERS... -B /usr/local/bin -d /home/postgres/data${PSQLOLDVERSION} -D /home/postgres/data${PSQLNEWVERSION} -c
# do upgrade
pg_upgrade -b /var/ports/basejai... -B /usr/local/bin -d /home/postgres/data${PSQLOLDVERSION} -D /home/postgres/data${PSQLNEWVERSION}
```
## Migrate configuration files
```bash
cp data${PSQLOLDVERSION}/postgresql.conf data${PSQLNEWVERSION}/postgresql.conf
cp data${PSQLOLDVERSION}/pg_hba.
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