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
CREATE FUNCTION
COMMENT
ALTER TABLE
INSERT 0 1
ERROR: duplicate key value violates unique constraint "bank_bighash_uni" DETAIL: Key (bank_bighash)=(2937395560705972887) already exists.
INSERT 0 1
ERROR: duplicate key value violates unique constraint "bank_bighash_uni" DETAIL: Key (bank_bighash)=(-1715083720741530461) already exists.
INSERT 0 0
col1 | col2 | col3 | col4 | col5 | col6 | col7 | col8 | bank_bighash |
---|---|---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 2937395560705972887 |
1 | 2 | null | 4 | 5 | null | 7 | 8 | -1715083720741530461 |
SELECT 2