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?.
CREATE TABLE
INSERT 0 4
block_number | first_value |
---|---|
47 | 100 |
48 | 100 |
49 | 100 |
50 | 100 |
51 | 100 |
52 | 200 |
53 | 200 |
54 | 200 |
55 | 200 |
56 | 200 |
57 | 200 |
58 | 120 |
59 | 120 |
60 | 180 |
SELECT 14