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?.
CREATE TABLE
INSERT 0 6
t_id work_hours
1 2
2 7
3 4
4 3
5 10
SELECT 5
t_id work_interval
1 02:00:00
2 07:00:00
3 04:00:00
4 03:00:00
5 10:00:00
6 00:55:00
SELECT 6
t_id work_hours
1 2
2 7
3 4
4 3
5 10
6 0
SELECT 6
t_id work_interval
1 02:00:00
2 07:00:00
3 04:00:00
4 03:00:00
5 10:00:00
6 00:55:00
SELECT 6