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
sku | price | stock | price | stock | price | stock |
---|---|---|---|---|---|---|
sku1 | 110 | 22 | 120 | 15 | 30 | 11 |
sku2 | 10 | 2 | 9 | 3 | null | null |
sku3 | null | null | 1 | 7 | 19 | 5 |
sku | price | stock | price | stock | price | stock |
---|---|---|---|---|---|---|
sku1 | 110 | 22 | 120 | 15 | 30 | 11 |
sku2 | 10 | 2 | 9 | 3 | null | null |
sku3 | null | null | 1 | 7 | 19 | 5 |