pg_port Return the port number associated with the connection Description intpg_port resourceconnection pg_port returns the port number that the given PostgreSQL connection resource is connected to.