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?.
5 rows affected
dow_from dow_to time_from time_to
1 1 13:00:00 17:30:00
2 2 13:00:00 17:30:00
5 5 14:00:00 17:00:00
2 3 23:00:00 01:30:00
0 1 23:00:00 01:30:00
ERROR:  conflicting key value violates exclusion constraint "schedule_event_id_t_range_excl"
DETAIL:  Key (event_id, t_range)=(1, ["1996-01-01 17:00:00","1996-01-01 18:30:00")) conflicts with existing key (event_id, t_range)=(1, ["1996-01-01 13:00:00","1996-01-01 17:30:00")).