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?.
9 rows affected
fooid | target | updated_at |
---|---|---|
foo | target1 | 2017-09-14 01:00:00 |
foo | target2 | 2017-09-14 02:00:00 |
foo | target3 | 2017-09-14 03:00:00 |
foo | target4 | 2017-09-14 04:00:00 |
foo | target5 | 2017-09-14 05:00:00 |
foo | target6 | 2017-09-15 11:00:00 |
foo | target7 | 2017-09-15 12:00:00 |
bar | target8 | 2017-09-15 02:00:00 |
foo | target9 | 2017-09-16 23:00:00 |
fooid | target | updated_at |
---|---|---|
foo | target6 | 2017-09-15 11:00:00 |
foo | target7 | 2017-09-15 12:00:00 |
bar | target8 | 2017-09-15 02:00:00 |
fooid | target | updated_at |
---|---|---|
foo | target9 | 2017-09-16 23:00:00 |
2 rows affected
3 rows affected
fooid | target | updated_at |
---|---|---|
foo | target3 | 2017-09-14 03:00:00 |
foo | target4 | 2017-09-14 04:00:00 |
foo | target5 | 2017-09-14 05:00:00 |
foo | target6 | 2017-09-15 11:00:00 |
foo | target7 | 2017-09-15 12:00:00 |
bar | target8 | 2017-09-15 02:00:00 |
foo | target9 | 2017-09-16 23:00:00 |