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 4
seconds | hh | mm | ss | hh_mm_ss |
---|---|---|---|---|
34837 | 9 | 40 | 37 | 09:40:37 |
51714 | 14 | 21 | 54 | 14:21:54 |
0 | 0 | 0 | 0 | 00:00:00 |
86400 | 24 | 0 | 0 | 24:00:00 |
SELECT 4