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 11000
INSERT 0 1
DELETE 1063
ANALYZE
ctid | city_id | city | other_names_lower |
---|---|---|---|
(87,87) | 11001 | %foobar | %fooелезbar |
(87,86) | 11000 | QOWAJNJL YET | QOWAJNJL YET |
(87,85) | 10999 | QJDPP ZVMTIXT | QJDPP ZVMTIXT |
SELECT 3
DELETE 80
ctid | city_id | city | other_names_lower |
---|---|---|---|
(86,126) | 10914 | FGWCZJIH DWO | FGWCZJIH DWO |
(86,125) | 10913 | NTUVXCUM IBDVTZA | NTUVXCUM IBDVTZA |
(86,124) | 10912 | CPCHIF VSDJPP | CPCHIF VSDJPP |
SELECT 3