I have got a PostgreSQL table that covers time intervals.
This is a simplified structure of my table
CREATE TABLE intervals ( name varchar(40),