Postgres Add Constraint Using Index