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?.
3 rows affected
priority | productive | unproductive | neutral |
---|---|---|---|
High | {1,2} | {} | {4,5} |
Medium | {3,4} | {5,7} | {2} |
Low | {1} | {2,6} | {} |
productive | unproductive | neutral |
---|---|---|
{1,2,3} | {7,6} | {4,5} |
state | array_agg |
---|---|
neutral | {4,5} |
productive | {1,2,3} |
unproductive | {7,6} |