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?.
version |
---|
PostgreSQL 9.5.18 on x86_64-pc-linux-gnu (Debian 9.5.18-1.pgdg80+1), compiled by gcc (Debian 4.9.2-10+deb8u2) 4.9.2, 64-bit |
3 rows affected
mary | paul |
---|---|
1 | sdf |
2 | xxx |
3 | yyy |
2 rows affected
2 rows affected
mary | paul |
---|---|
1 | sdf |
2 | xxx |
mary | paul |
---|---|
1 | sdf |
2 | xxx |