add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
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?.
id key category avg_time_1 avg_time_2
1 1 10 10 20
2 1 20 30 40
3 2 10 10 50
4 2 20 60 70
SELECT 4
key avg_time_1 avg_time_2
1 [{"avg_time": 10, "category": 10}, {"avg_time": 30, "category": 20}] [{"avg_time": 20, "category": 10}, {"avg_time": 40, "category": 20}]
2 [{"avg_time": 10, "category": 10}, {"avg_time": 60, "category": 20}] [{"avg_time": 50, "category": 10}, {"avg_time": 70, "category": 20}]
SELECT 2