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?.
version |
---|
PostgreSQL 9.6.24 on x86_64-pc-linux-musl, compiled by gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219, 64-bit |
SELECT 1
CREATE TABLE
INSERT 0 1
UPDATE 1
jsonb_pretty |
---|
[ { "line": 1, "blocs": [ { "name": "abc", "size": 100, "type": "regular" }, { "name": "def", "size": 100, "type": "regular" }, { "name": "ghi", "size": 100, "type": "regular" } ] }, { "line": 2, "blocs": [ { "name": "xyz", "size": 100, "type": "regular" } ] } ] |
SELECT 1