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?.
CREATE TABLE
INSERT 0 20
array_agg | ip |
---|---|
{11} | {10.10.1.10} |
{0f,10} | {10.10.1.8,10.10.1.9} |
{0a,0b,0d,12,1a,1e} | {10.10.1.3,10.10.1.1,10.10.1.11,10.10.1.2,10.10.1.4} |
{0e} | {10.10.1.6,10.10.1.7} |
{0c} | {10.10.1.5} |
{1f,23} | {10.10.1.12} |
SELECT 6