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 12
latitude longitude arrived_at
51.123456 -1.123456 2020-04-27 17:00:00
51.654321 -1.654321 2020-04-27 17:10:00
51.444555 -1.444555 2020-04-27 17:25:00
51.123456 -1.123456 2020-04-27 17:30:00
51.444555 -1.444555 2020-04-27 17:45:00
51.654321 -1.654321 2020-04-27 17:55:00
SELECT 6
latitude longitude arrived_at
51.123456 -1.123456 2020-04-27 17:00:00
51.654321 -1.654321 2020-04-27 17:10:00
51.444555 -1.444555 2020-04-27 17:25:00
51.123456 -1.123456 2020-04-27 17:30:00
51.444555 -1.444555 2020-04-27 17:45:00
51.654321 -1.654321 2020-04-27 17:55:00
SELECT 6
latitude longitude arrived_at left_at
51.123456 -1.123456 2020-04-27 17:00:00 2020-04-27 17:10:00
51.654321 -1.654321 2020-04-27 17:10:00 2020-04-27 17:25:00
51.444555 -1.444555 2020-04-27 17:25:00 2020-04-27 17:30:00
51.123456 -1.123456 2020-04-27 17:30:00 2020-04-27 17:45:00
51.444555 -1.444555 2020-04-27 17:45:00 2020-04-27 17:55:00
51.654321 -1.654321 2020-04-27 17:55:00 null
SELECT 6