Postgresql Unique Constraint Null Hypothesis Formula