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?.
part | Rownumber by part | stock 95er Percentile1 | Rownumber total | stock 95er Percentile2 | x |
---|---|---|---|---|---|
0 | 1 | 95.05 | 1 | 95.05 | 1 |
1 | 1 | 95.05 | 2 | 95.05 | 2 |
2 | 1 | 95.05 | 3 | 95.05 | 3 |
3 | 1 | 95.05 | 4 | 95.05 | 4 |
4 | 1 | 95.05 | 5 | 95.05 | 5 |
5 | 1 | 95.05 | 6 | 95.05 | 6 |
6 | 1 | 95.05 | 7 | 95.05 | 7 |
7 | 1 | 95.05 | 8 | 95.05 | 8 |
8 | 1 | 95.05 | 9 | 95.05 | 9 |
9 | 1 | 95.05 | 10 | 95.05 | 10 |