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?.
8 rows affected
name | acc | time | dep_amt | wit_amt | profit |
---|---|---|---|---|---|
ccc | 1 | 10 | 100 | 150 | -50 |
bbb | 2 | 20 | 100 | 101 | -1 |
bbb | 1 | 10 | 300 | 170 | 130 |