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?.
8 rows affected
company_id | ceo | co_founder | hr | security_officer |
---|---|---|---|---|
1 | random name | next random name | John | Bread |
2 | Toast | Co-founder company 2 | HR company 2 | Security officer company 2 |
company_id | ceo | co_founder | hr | security_officer |
---|---|---|---|---|
1 | 1 | 2 | 3 | 4 |
2 | 5 | 7 | 6 | 8 |