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?.
4 rows affected
created_at | user_id |
---|---|
2020-01-01 22:22:22 | 1 |
2020-01-01 22:22:44 | 1 |
2020-01-01 22:22:22 | 2 |
2020-01-01 22:24:44 | 2 |
user_id | flag |
---|---|
1 | t |
2 | f |