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 8
hero ct start_time end_time
Batman 2 2016-12-08 12:00:00 2016-12-08 12:07:00
Batman 1 2016-12-08 13:00:00 null
Batman 1 2016-12-08 14:00:00 null
Wonder Woman 2 2016-12-08 10:15:00 2016-12-08 10:18:00
Wonder Woman 1 2016-12-08 10:25:00 null
Wonder Woman 1 2016-12-08 11:30:00 null
SELECT 6
hero ct start_time end_time
Batman 2 2016-12-08 12:00:00 2016-12-08 12:07:00
Batman 1 2016-12-08 13:00:00 null
Batman 1 2016-12-08 14:00:00 null
Wonder Woman 3 2016-12-08 10:15:00 2016-12-08 10:25:00
Wonder Woman 1 2016-12-08 11:30:00 null
SELECT 5