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
CREATE TABLE
id | est_id | bm_nom |
---|---|---|
1 | 1 | leopold stotch |
2 | 3 | fredderik gauss |
3 | 2 | fritz gortz |
4 | 2 | edward gortz |
INSERT 0 4
id | est_id | bm_nom |
---|---|---|
5 | 2 | fritz gortz II |
6 | 2 | edward gortz II |
7 | 3 | fredderik gauss II |
8 | 4 | jane doe |
9 | 4 | john doe |
10 | 5 | leopold stotch |
INSERT 0 6