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?.
9 rows affected
id | js | result1 |
---|---|---|
0 | null | null |
1 | {} | {} |
2 | {"no": "match", "found": "here"} | {} |
3 | {"firstname": "John"} | {"firstname": "John"} |
4 | {"secondname": "Smith"} | {"secondname": "Smith"} |
5 | {"age": 55, "foo": "bar", "firstname": "John", "secondname": "Smith"} | {"firstname": "John", "secondname": "Smith"} |
6 | {"age": 55, "foo": "bar", "firstname": "John"} | {"firstname": "John"} |
7 | {"age": 55, "foo": "bar", "firstname": ["John", "Middlename", "Thirdname"], "secondname": null} | {"firstname": ["John", "Middlename", "Thirdname"], "secondname": null} |
8 | {"foo": {"bam": "bom", "bar": "baz"}, "firstname": 1, "secondname": true} | {"firstname": 1, "secondname": true} |
id | js | result2 |
---|---|---|
0 | null | null |
1 | {} | {} |
2 | {"no": "match", "found": "here"} | {} |
3 | {"firstname": "John"} | {"firstname": "John"} |
4 | {"secondname": "Smith"} | {"secondname": "Smith"} |
5 | {"age": 55, "foo": "bar", "firstname": "John", "secondname": "Smith"} | {"firstname": "John", "secondname": "Smith"} |
6 | {"age": 55, "foo": "bar", "firstname": "John"} | {"firstname": "John"} |
7 | {"age": 55, "foo": "bar", "firstname": ["John", "Middlename", "Thirdname"], "secondname": null} | {"firstname": ["John", "Middlename", "Thirdname"], "secondname": null} |
8 | {"foo": {"bam": "bom", "bar": "baz"}, "firstname": 1, "secondname": true} | {"firstname": 1, "secondname": true} |
id | js | result3 |
---|---|---|
0 | null | null |
1 | {} | {} |
2 | {"no": "match", "found": "here"} | {} |
3 | {"firstname": "John"} | {"firstname": "John"} |
4 | {"secondname": "Smith"} | {"secondname": "Smith"} |
5 | {"age": 55, "foo": "bar", "firstname": "John", "secondname": "Smith"} | {"firstname": "John", "secondname": "Smith"} |
6 | {"age": 55, "foo": "bar", "firstname": "John"} | {"firstname": "John"} |
7 | {"age": 55, "foo": "bar", "firstname": ["John", "Middlename", "Thirdname"], "secondname": null} | {"firstname": ["John", "Middlename", "Thirdname"], "secondname": null} |
8 | {"foo": {"bam": "bom", "bar": "baz"}, "firstname": 1, "secondname": true} | {"firstname": 1, "secondname": true} |