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
INSERT 0 4
json_build_object |
---|
{"List of regions" : ["Region name", "Moscow region", "region code", 77]} |
{"List of regions" : ["Region name", "Belgorod Oblast", "region code", 31]} |
{"List of regions" : ["Region name", "Bryansk Oblast", "region code", 32]} |
{"List of regions" : ["Region name", "Vladimir Oblast", "region code", 33]} |
SELECT 4
json_build_object |
---|
{"List of regions" : [{"Region name" : "Moscow region", "region code" : 77}, {"Region name" : "Belgorod Oblast", "region code" : 31}, {"Region name" : "Bryansk Oblast", "region code" : 32}, {"Region name" : "Vladimir Oblast", "region code" : 33}]} |
SELECT 1