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?.
SELECT 7
timestamp | owner_id | owner_assigneddate | lastmodifieddate | target_timestamp |
---|---|---|---|---|
2019-11-12 16:01:55 | null | null | null | null |
2019-11-12 19:03:18 | 39530934 | 2019-11-12 19:03:18 | 2019-11-12 19:03:18 | 2019-11-12 19:03:18 |
2019-11-12 19:03:19 | null | null | 2019-11-12 19:03:19 | 2019-11-12 19:03:18 |
2019-11-12 19:03:20 | null | null | 2019-11-12 19:03:20 | 2019-11-12 19:03:18 |
2019-11-12 19:03:31 | 40320368 | 2019-11-12 19:03:31 | 2019-11-12 19:03:31 | 2019-11-12 19:03:31 |
2019-11-12 19:03:33 | null | null | 2019-11-12 19:03:33 | 2019-11-12 19:03:31 |
2019-11-12 19:03:56 | null | null | 2019-11-12 19:03:356 | 2019-11-12 19:03:31 |
SELECT 7
timestamp | owner_id | owner_assigneddate | lastmodifieddate |
---|---|---|---|
2019-11-12 16:01:55 | null | null | null |
2019-11-12 19:03:18 | 39530934 | 2019-11-12 19:03:18 | 2019-11-12 19:03:18 |
2019-11-12 19:03:19 | 39530934 | null | 2019-11-12 19:03:19 |
2019-11-12 19:03:20 | 39530934 | null | 2019-11-12 19:03:20 |
2019-11-12 19:03:31 | 40320368 | 2019-11-12 19:03:31 | 2019-11-12 19:03:31 |
2019-11-12 19:03:33 | 40320368 | null | 2019-11-12 19:03:33 |
2019-11-12 19:03:56 | 40320368 | null | 2019-11-12 19:03:356 |
SELECT 7