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
account_id | key | is_customer | favorite_veg |
---|---|---|---|
1 | A | t | apple |
2 | B | t | apple |
1 | C | f | banana |
2 | D | f | ananas |
3 | E | t | kiwi |
account_id | key | is_customer | favorite_veg |
---|---|---|---|
1 | A | t | apple |
2 | B | t | apple |
3 | E | t | kiwi |