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?.
14 rows affected
ts | val |
---|---|
100000 | 50 |
130100 | 30050 |
160100 | 60050 |
190200 | 100 |
220200 | 30100 |
250200 | 30100 |
300000 | 300 |
500000 | 100 |
550000 | 1000 |
600000 | 1000 |
650000 | 2000 |
700000 | 2000 |
720000 | 2000 |
750000 | 300 |
ts | val | rank |
---|---|---|
100000 | 50 | 1 |
190200 | 100 | 1 |
500000 | 100 | 2 |
300000 | 300 | 1 |
750000 | 300 | 2 |
550000 | 1000 | 1 |
600000 | 1000 | 2 |
650000 | 2000 | 1 |
700000 | 2000 | 2 |
720000 | 2000 | 3 |
130100 | 30050 | 1 |
220200 | 30100 | 1 |
250200 | 30100 | 2 |
160100 | 60050 | 1 |