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 TABLE
INSERT 0 8
INSERT 0 8
unsigned | signed | format |
---|---|---|
0 | 0 | stored as int |
0 | 0 | stored as oid |
1 | 1 | stored as int |
1 | 1 | stored as oid |
2 | 2 | stored as oid |
2147483646 | 2147483646 | stored as int |
2147483647 | 2147483647 | stored as int |
2147483647 | 2147483647 | stored as oid |
2147483648 | -2147483648 | stored as int |
2147483648 | -2147483648 | stored as oid |
2147483649 | -2147483647 | stored as oid |
2147483649 | -2147483647 | stored as int |
4294967294 | -2 | stored as int |
4294967294 | -2 | stored as oid |
4294967295 | -1 | stored as int |
4294967295 | -1 | stored as oid |
SELECT 16