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
entity_id | Duration (excluding saturday and sunday) | Duration full |
---|---|---|
1 | 186 days 23:30:21 | {"days": 22, "hours": 23, "months": 8, "minutes": 30, "seconds": 21.000000} |
2 | 267 days 03:32:41 | {"days": 15, "hours": 3, "years": 1, "minutes": 32, "seconds": 41.000000} |
SELECT 2