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?.
5 rows affected
5 rows affected
25 rows affected
id | name | owned_count | wished_count |
---|---|---|---|
1 | product1 | 3 | 1 |
2 | product2 | 1 | 3 |
3 | product3 | 3 | 1 |
4 | product4 | 1 | 3 |
5 | product5 | 3 | 1 |