Is it possible in Postgresql 9.3 to apply a UNIQUE constraint to a table where one of the columns in the constraint is casted? I have a TIMESTAMP column that I would like to cast to a DATE and use as part of the UNIQUE constraint. However, Postgresql is throwing a syntax error.
See full example with My SQLFiddle