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?.
6 rows affected
grouped_date | location | data |
---|---|---|
2018-06-01 00:00:00 | location_00 | {"1" : 1, "2" : null, "3" : null, "4" : 1, "5" : 8} |
2018-05-01 00:00:00 | location_00 | {"1" : null, "2" : 9, "3" : 10, "4" : 8, "5" : 3} |
grouped_date | location | data | je |
---|---|---|---|
2018-05-01 00:00:00 | location_00 | {"3": 2} | (3,2) |
2018-05-01 00:00:00 | location_00 | {"3": 8, "4": 7} | (3,8) |
2018-05-01 00:00:00 | location_00 | {"3": 8, "4": 7} | (4,7) |
2018-05-01 00:00:00 | location_00 | {"2": 1, "5": 3} | (2,1) |
2018-05-01 00:00:00 | location_00 | {"2": 1, "5": 3} | (5,3) |
2018-05-01 00:00:00 | location_00 | {"2": 8, "4": 1} | (2,8) |
2018-05-01 00:00:00 | location_00 | {"2": 8, "4": 1} | (4,1) |
2018-06-01 00:00:00 | location_00 | {"4": 1, "5": 8} | (4,1) |
2018-06-01 00:00:00 | location_00 | {"4": 1, "5": 8} | (5,8) |
2018-06-01 00:00:00 | location_00 | {"1": 1} | (1,1) |
grouped_date | location | thing_type | total |
---|---|---|---|
2018-05-01 00:00:00 | location_00 | 2 | 9 |
2018-05-01 00:00:00 | location_00 | 3 | 10 |
2018-05-01 00:00:00 | location_00 | 4 | 8 |
2018-05-01 00:00:00 | location_00 | 5 | 3 |
2018-06-01 00:00:00 | location_00 | 1 | 1 |
2018-06-01 00:00:00 | location_00 | 4 | 1 |
2018-06-01 00:00:00 | location_00 | 5 | 8 |