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?.
CREATE TABLE
INSERT 0 3
CREATE TABLE
INSERT 0 2
id location elevation tag jsonb_pretty
a_123 04662 155m blue {
    "2023-08-29T13:00:00": {
        "uv": 5,
        "rain": 0,
        "temp": 85
    },
    "2023-08-29T14:00:00": {
        "uv": 1,
        "rain": 5,
        "temp": 70
    },
    "2023-08-29T15:00:00": {
        "uv": 4,
        "rain": 1,
        "temp": 83
    }
}
b_123 84003 15m yellow {
    "2023-08-29T13:00:00": {
        "uv": 5,
        "rain": 0,
        "temp": 85
    },
    "2023-08-29T14:00:00": {
        "uv": 1,
        "rain": 7,
        "temp": 73
    },
    "2023-08-29T15:00:00": {
        "uv": 7,
        "rain": 0,
        "temp": 87
    }
}
SELECT 2