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?.
7 rows affected
id | val | x | y |
---|---|---|---|
1 | First Value (This should be first order) | 7 | 2 |
2 | Second Value (This should be second order) | 6 | 3 |
3 | Third Value (This should be third order) | 5 | 4 |
7 | Fourth Value (This should be fourth order) | 1 | 7 |
6 | Fifth Value (This should be fifth order) | 2 | 6 |
5 | Sixth Value (This should be sixth order) | 3 | 5 |
4 | Seventh Value (And This should be last order) | 4 | 1 |
id | val | x | y |
---|---|---|---|
1 | First Value (This should be first order) | 7 | 2 |
2 | Second Value (This should be second order) | 6 | 3 |
3 | Third Value (This should be third order) | 5 | 4 |
7 | Fourth Value (This should be fourth order) | 1 | 7 |
6 | Fifth Value (This should be fifth order) | 2 | 6 |
5 | Sixth Value (This should be sixth order) | 3 | 5 |
4 | Seventh Value (And This should be last order) | 4 | 1 |