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.5.25 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
namevalue | json_path |
---|---|
"name1" | {iProps,0,value,rules,0,ao,sc} |
"name2" | {iProps,0,value,rules,1,ao,sc} |
"name3" | {iProps,0,value,rules,2,ao,sc} |
SELECT 3
UPDATE 1
jsonb_pretty |
---|
{ "iProps": [ { "value": { "rules": [ { "ao": { "sc": "name1" } }, { "ao": { "sc": { "link": "name2.com", "name": "name2" } } }, { "ao": { "sc": { "link": "name3.com", "name": "name3" } } } ] } } ] } |
SELECT 1