add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
3 rows affected
ERROR:  conflicting key value violates exclusion constraint "no_overlap"
DETAIL:  Key (locationids, tsrange(timestart, timeend))=({7,8,9}, ["2020-03-01 10:00:00","2020-03-02 18:30:00")) conflicts with existing key (locationids, tsrange(timestart, timeend))=({5,6,7}, ["2020-03-02 14:00:00","2020-03-10 20:00:00")).