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
INSERT 0 6
UPDATE 1
id | article | itsorder |
---|---|---|
1 | A12 | 1 |
2 | A15 | 5 |
3 | A25 | 10 |
4 | A28 | 15 |
5 | A31 | 20 |
6 | A35 | 2 |
SELECT 6
UPDATE 6
id | article | itsorder |
---|---|---|
1 | A12 | 1 |
2 | A15 | 10 |
3 | A25 | 15 |
4 | A28 | 20 |
5 | A31 | 25 |
6 | A35 | 5 |
SELECT 6