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?.
towar | data_od | data_do | ilosc |
---|---|---|---|
towar1 | 2020-01-04 | 2020-01-05 | 2 |
towar1 | 2020-01-07 | 2020-01-10 | 4 |
towar2 | 2020-01-04 | 2020-01-05 | 2 |
towar2 | 2020-01-07 | 2020-01-08 | 2 |