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
attrname | attrvalue | id |
---|---|---|
status_t1 | 1 | 1 |
status_t2 | 1 | 2 |
d1 | 10 | 3 |
d2 | 11 | 4 |
d1 | 10 | 5 |
d2 | 11 | 6 |
status_t1 | 1 | 7 |
status_t2 | 10 | 8 |
d1 | 10 | 9 |
d2 | 11 | 10 |
status_t1 | 0 | 11 |
status_t2 | 0 | 12 |
d1 | 10 | 13 |
d2 | 11 | 14 |
d1 | 10 | 15 |
d2 | 11 | 16 |
d1 | 10 | 17 |
d2 | 11 | 18 |
attrname | attrvalue | id | grp_1 | grp_2 | status_t1 | status_t2 |
---|---|---|---|---|---|---|
d1 | 10 | 3 | 1 | 1 | 1 | 1 |
d2 | 11 | 4 | 1 | 1 | 1 | 1 |
d1 | 10 | 5 | 1 | 1 | 1 | 1 |
d2 | 11 | 6 | 1 | 1 | 1 | 1 |
d1 | 10 | 9 | 2 | 2 | 1 | 10 |
d2 | 11 | 10 | 2 | 2 | 1 | 10 |
d1 | 10 | 13 | 3 | 3 | 0 | 0 |
d2 | 11 | 14 | 3 | 3 | 0 | 0 |
d1 | 10 | 15 | 3 | 3 | 0 | 0 |
d2 | 11 | 16 | 3 | 3 | 0 | 0 |
d1 | 10 | 17 | 3 | 3 | 0 | 0 |
d2 | 11 | 18 | 3 | 3 | 0 | 0 |