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 11
user_uuid | cnt | percent |
---|---|---|
uuid_2 | 3 | 0.0 |
uuid_3 | 1 | 0.0 |
uuid_1 | 6 | 16.7 |
uuid_4 | 1 | 0.0 |
SELECT 4
user_uuid | cnt | percent |
---|---|---|
uuid_2 | 3 | 0.0 |
uuid_3 | 1 | 0.0 |
uuid_1 | 6 | 16.7 |
uuid_4 | 1 | 0.0 |
SELECT 4