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?.
12 rows affected
id | instance_id | value | is_peak |
---|---|---|---|
1 | 1 | a | f |
2 | 1 | ap | f |
3 | 1 | app | f |
4 | 1 | appl | f |
5 | 2 | b | f |
6 | 2 | bo | f |
7 | 1 | apple | t |
8 | 2 | boa | f |
9 | 2 | boat | t |
10 | 2 | boa | f |
11 | 1 | appl | f |
12 | 1 | apply | t |
id | instance_id | value | is_peak |
---|---|---|---|
7 | 1 | apple | t |
9 | 2 | boat | t |
12 | 1 | apply | t |