print an unused TCP port
getsocket utility enables tests scrips
to spin up temporary services on using a unique TCP port that can be bound
pg_tmp(1), bind(2), socket(2)
getsocket utility cannot guarantee the
availability of the allocated port since the socket is recycled by the
operating system when the utility returns.