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?.
DROP TABLE
CREATE TABLE
INSERT 0 2
DROP TABLE
CREATE TABLE
INSERT 0 5
row_number | list_of_ids | string_agg |
---|---|---|
1 | {633681,1278392,2320888,2200426} | 2 apple, 1 charmander, 1 <null> |
2 | {2443842,2959599,3703823,3330376,915750,941736} | 1 batman |
SELECT 2