Postgres Select Distinct Multiple Fields