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?.
data |
---|
[{"date": "26/11/2020 23:27","note": "test1"},{"date": "22/11/2020 22:59","note": "test2"},{"date": "18/11/2020 17:08","note": "test3"}] |
SELECT 1
data | value |
---|---|
[{"date": "26/11/2020 23:27","note": "test1"},{"date": "22/11/2020 22:59","note": "test2"},{"date": "18/11/2020 17:08","note": "test3"}] | {"date": "26/11/2020 23:27","note": "test1"} |
[{"date": "26/11/2020 23:27","note": "test1"},{"date": "22/11/2020 22:59","note": "test2"},{"date": "18/11/2020 17:08","note": "test3"}] | {"date": "22/11/2020 22:59","note": "test2"} |
[{"date": "26/11/2020 23:27","note": "test1"},{"date": "22/11/2020 22:59","note": "test2"},{"date": "18/11/2020 17:08","note": "test3"}] | {"date": "18/11/2020 17:08","note": "test3"} |
SELECT 3
data | value |
---|---|
[{"date": "26/11/2020 23:27","note": "test1"},{"date": "22/11/2020 22:59","note": "test2"},{"date": "18/11/2020 17:08","note": "test3"}] | {"date": "26/11/2020 23:27","note": "test1"} |
[{"date": "26/11/2020 23:27","note": "test1"},{"date": "22/11/2020 22:59","note": "test2"},{"date": "18/11/2020 17:08","note": "test3"}] | {"date": "22/11/2020 22:59","note": "test2"} |
[{"date": "26/11/2020 23:27","note": "test1"},{"date": "22/11/2020 22:59","note": "test2"},{"date": "18/11/2020 17:08","note": "test3"}] | {"date": "18/11/2020 17:08","note": "test3"} |
SELECT 3
value |
---|
{"date": "26/11/2020 23:27","note": "test1"} |
{"date": "22/11/2020 22:59","note": "test2"} |
{"date": "18/11/2020 17:08","note": "test3"} |
SELECT 3
value |
---|
{"date": "26/11/2020 23:27","note": "test1"} |
SELECT 1