Loading...
Loading...
TimescaleDB PostgreSQL for time-series. Use for time-series on Postgres.
npx skill4agent add g1joshi/agent-skills timescaledb-- Convert standard table to hypertable
SELECT create_hypertable('conditions', 'time');
-- Query using standard SQL time-bucket functions
SELECT time_bucket('15 minutes', time) AS bucket,
avg(temperature)
FROM conditions
GROUP BY bucket
ORDER BY bucket DESC;