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?.
5 rows affected
id | val | created | fk | running_sum_capped_at_50 | threshold_met |
---|---|---|---|---|---|
1 | 100 | 2020-07-06 11:03:08.365753 | 5 | 100 | t |
2 | 25 | 2020-07-06 11:13:08.365753 | 5 | 25 | f |
3 | 30 | 2020-07-06 11:23:08.365753 | 5 | 55 | t |
4 | 45 | 2020-07-06 11:33:08.365753 | 5 | 45 | f |
5 | 10 | 2020-07-06 11:43:08.365753 | 5 | 55 | t |
id | val | created | fk | running_sum_capped_at_110 | threshold_met |
---|---|---|---|---|---|
1 | 100 | 2020-07-06 11:03:08.365753 | 5 | 100 | f |
2 | 25 | 2020-07-06 11:13:08.365753 | 5 | 125 | t |
3 | 30 | 2020-07-06 11:23:08.365753 | 5 | 30 | f |
4 | 45 | 2020-07-06 11:33:08.365753 | 5 | 75 | f |
5 | 10 | 2020-07-06 11:43:08.365753 | 5 | 85 | f |