Postgresql Add Constraint Using Index