v9.5.1
- Install PostgreSQL 12 first to ensure it defaults to port 5432
Here's how the port numbers are assigned:
vagrant@homestead:/etc/postgresql$ cat 12/main/postgresql.conf | grep port
port = 5432 # (change requires restart)
vagrant@homestead:/etc/postgresql$ cat 11/main/postgresql.conf | grep port
port = 5433 # (change requires restart)
vagrant@homestead:/etc/postgresql$ cat 10/main/postgresql.conf | grep port
port = 5434 # (change requires restart)
vagrant@homestead:/etc/postgresql$ cat 9.6/main/postgresql.conf | grep port
port = 5435 # (change requires restart)