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 9
product | plant | store | days_diff |
---|---|---|---|
013579 | C678 | 1A3 | 15 |
123456 | A123 | Z12 | 0 |
789123 | B345 | 123 | 7 |
SELECT 3