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?.
jsonb_pretty |
---|
{ "cars": [ { "name": "BMW", "year": 1991 }, { "name": "Ford", "model": "Mustang" }, { "name": "Fiat" }, { "name": "VW", "year": 2000, "model": "Golf" }, { "name": "VW", "model": "" } ] } |
name | year | model |
---|---|---|
BMW | 1991 | null |
Ford | null | Mustang |
Fiat | null | null |
VW | 2000 | Golf |
VW | null |
name | year | model |
---|---|---|
BMW | 1991 | null |
Ford | null | Mustang |
Fiat | null | null |
VW | 2000 | Golf |
VW | null | null |
names | years | models |
---|---|---|
BMW,Ford,Fiat,VW,VW | 1991,2000 | Mustang,Golf |
?column? |
---|
Cars: BMW,Ford,Fiat,VW,VW // Years: 1991,2000 // Models: Mustang,Golf |