[#1337] horrendous pg_port fix