5432 is the usual default port for PostgreSQL (see "-p" description here, "port" description here, here, etc). This stackoverflow post notes that it is sometimes set to 5433 during installation if there was already a process running at 5432 during install, but I think it'd be better to just use what is "normally" the default and assume that users have set it up correctly. This would also obviate some of this issue.
5432 is the usual default port for PostgreSQL (see "-p" description here, "port" description here, here, etc). This stackoverflow post notes that it is sometimes set to 5433 during installation if there was already a process running at 5432 during install, but I think it'd be better to just use what is "normally" the default and assume that users have set it up correctly. This would also obviate some of this issue.