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?.
9 rows affected
sales_date | country | sales_volume | fix_costs |
---|---|---|---|
2020-01-03 | DE | 500 | 2000 |
2020-01-03 | FR | 350 | 2000 |
2020-02-15 | DE | 0 | 5000 |
2020-02-15 | FR | 0 | 5000 |
2020-03-27 | DE | 180 | 4000 |
2020-03-27 | FR | 970 | 4000 |
sales_date | country | sales_volume | fix_costs |
---|---|---|---|
2020-01-03 | DE | 500 | 2000 |
2020-01-03 | FR | 350 | 2000 |
2020-02-15 | DE | 0 | 5000 |
2020-02-15 | FR | 0 | 5000 |
2020-03-27 | DE | 180 | 4000 |
2020-03-27 | FR | 970 | 4000 |