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
datetime lowest_tick tick_lower
2022-10-01 00:02:00 204406 204306
2022-10-01 00:03:00 204525 204425
2022-10-01 00:04:00 204414 204314
2022-10-01 00:05:00 204200 204100
2022-10-01 00:06:00 204220 204120
2022-10-01 00:07:00 204120 204020
INSERT 0 6
CREATE FUNCTION
datetime lowest_tick tick_lower tick_lower_position
2022-10-01 00:02:00 204406 204306 204306
2022-10-01 00:03:00 204525 204425 204306
2022-10-01 00:04:00 204414 204314 204306
2022-10-01 00:05:00 204200 204100 204100
2022-10-01 00:06:00 204220 204120 204100
2022-10-01 00:07:00 204120 204020 204100
SELECT 6