I have a numeric[] column in a Postgres database that should represent an array of times (like {0.5 seconds, 2 seconds, 3.25 seconds, ...}). As such I would like to constrain the values in the array to be unique and sorted. Is there any way to do that?
I've seen some answers that bring up the intarray module's sort and uniq functions. Is there anything like that for numeric/decimal?