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 2
operator_class_name | access_method_procedure |
---|---|
int4_ops | hashint8 |
int4_ops | hashint2 |
int4_ops | hashint4 |
SELECT 3
id | value | hashint4 | hashint8 |
---|---|---|---|
1 | 13362 | -178094052 | -178094052 |
2 | 41950 | -178094052 | -178094052 |
SELECT 2
ERROR: conflicting key value violates exclusion constraint "unique_value" DETAIL: Key (value)=(13362) conflicts with existing key (value)=(13362).
ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification
INSERT 0 0