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?.
18 rows affected
client_id | count_fails | count_completed | ?column? |
---|---|---|---|
c1 | 3 | 1 | 3 |
c2 | 2 | 1 | 2 |
c3 | 4 | 0 | null |
c4 | 0 | 1 | 0 |
c5 | 1 | 0 | null |
c6 | 0 | 1 | 0 |
c7 | 1 | 0 | null |
c8 | 3 | 0 | null |
client_id | count_fails | count_completed | ?column? |
---|---|---|---|
c1 | 3 | 1 | 3.0000000000000000 |
c2 | 2 | 1 | 2.0000000000000000 |
c3 | 4 | 0 | null |
c4 | 0 | 1 | 0.00000000000000000000 |
c5 | 1 | 0 | null |
c6 | 0 | 1 | 0.00000000000000000000 |
c7 | 1 | 0 | null |
c8 | 3 | 0 | null |