Postgresql Unique Constraint On Partitioned Matrices