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
v |
---|
\x1231 |
\x1234 |
\x12345678 |
\x1235 |
\x1238 |
v |
---|
\x12345678 |
\x1234 |
QUERY PLAN |
---|
Bitmap Heap Scan on t (cost=4.22..14.39 rows=7 width=32) |
Recheck Cond: ((v >= '\x1234'::bytea) AND (v < '\x1235'::bytea)) |
-> Bitmap Index Scan on t_pkey (cost=0.00..4.22 rows=7 width=0) |
Index Cond: ((v >= '\x1234'::bytea) AND (v < '\x1235'::bytea)) |