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?.
11 rows affected
rn | x | y | array_diff |
---|---|---|---|
1 | {10} | {10} | {} |
2 | {6} | {5,6} | {5} |
3 | {4,5,6} | {5,6} | {} |
4 | {5,6} | {5,6} | {} |
5 | {7,8} | {11} | {11} |
6 | {11} | {5,6,7} | {5,6,7} |
7 | {11} | {8} | {8} |
8 | {9,10} | {6} | {6} |
9 | {11} | {5,8,10,11,133} | {5,8,10,133} |
10 | {9,10} | {4,5,6,8,9,10,11} | {4,5,6,8,11} |
11 | {9,10} | {4,5,6,8,9,10,11} | {4,5,6,8,11} |
11 rows affected
x | y |
---|---|
{10} | {} |
{6} | {5} |
{4,5,6} | {} |
{5,6} | {} |
{7,8} | {11} |
{11} | {5,6,7} |
{11} | {8} |
{9,10} | {6} |
{11} | {5,8,10,133} |
{9,10} | {4,5,6,8,11} |
{9,10} | {4,5,6,8,11} |