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
users | value | mydate |
---|---|---|
user1 | 1337 | 2019-11-01 |
user1 | 1338 | 2019-03-28 |
user2 | 1234 | 2019-04-23 |
user2 | 4567 | 2019-05-05 |
users | value | mydate |
---|---|---|
user1 | 1338 | 2019-03-28 |
user2 | 4567 | 2019-05-05 |