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
location | rank_ |
---|---|
location_E | 1 |
location_D | 2 |
location_A | 3 |
location_B | 4 |
location_C | 5 |
location_F | 6 |
SELECT 6
UPDATE 6
location | rank_ |
---|---|
location_E | 1 |
location_D | 2 |
location_A | 3 |
location_B | 4 |
location_C | 5 |
location_F | 6 |
SELECT 6