Postgresql Function Set And Interval Notation