2 ms·In postgres you can array_agg(distinct) and error on the application side if there is more than one value.by masklinn 3y agoIn postgres you can array_agg(distinct) and error on the application side if there is more than one value.