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?.
ERROR: out of memory DETAIL: Failed on request of size 8 in memory context "ExprContext".
CREATE TABLE
INSERT 0 2
INSERT 0 1
INSERT 0 1
INSERT 0 2
id | i | hashint4 |
---|---|---|
1 | 213182 | 1463380867 |
2 | 1034649 | 1463380867 |
3 | 229405 | -1292445360 |
4 | 817996 | -1292445360 |
5 | null | null |
6 | null | null |
SELECT 6
ERROR: conflicting key value violates exclusion constraint "exclude_hast_test_i_excl" DETAIL: Key (i)=(229405) conflicts with existing key (i)=(229405).