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?.
2 rows affected
6 rows affected
table_1_id | array_agg |
---|---|
1 | {geom1,geom3,geom5} |
2 | {geom2,geom4,geom6} |
table_1_id | table_2_geom |
---|---|
1 | {geom1,geom3,geom5} |
2 | {geom2,geom4,geom6} |
2 rows affected
table_1_id | table_2_id_list | table_2_geom |
---|---|---|
1 | {1,3,5} | {geom1,geom3,geom5} |
2 | {2,4,6} | {geom2,geom4,geom6} |