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 10:57:04.765445 | 5 | 100 | t |
2 | 25 | 2020-07-06 11:07:04.765445 | 5 | 25 | f |
3 | 30 | 2020-07-06 11:17:04.765445 | 5 | 55 | t |
4 | 45 | 2020-07-06 11:27:04.765445 | 5 | 45 | f |
5 | 10 | 2020-07-06 11:37:04.765445 | 5 | 55 | t |