postgres=# -- port of the local connectionpostgres=# select inet_server_port(); inet_server_port------------------ 5432(1 row)postgres=#