Ad
Learn more

TimescaleDb

PostgreSQL extension for time-series data with automatic partitioning, up to 95% columnar compression, continuous aggregates, and ~200 native SQL functions.

Open Source Alternative to:

Screenshot of the TimescaleDb website

 
23,807stars+155(+0.7%)

Last 30 days

  • Last commit

    11 hours ago
  • Repository age

    10 years
  • Version

    2.31.0
  • Self-hosted

    Yes
  • Repository

    timescaledb
Self-host in 3 steps
  1. 1

    Start a KVM 2 VPS on Hostinger

    Recommended plan for one-click apps.

  2. 2

    Apply code

    10% off any 12-month plan at checkout.

  3. 3

    Deploy TimescaleDb

    With Hostinger's one-click installer.

Host with Hostinger

TimescaleDB is a PostgreSQL extension that turns Postgres into a purpose-built time-series database. It's designed for teams that want specialized time-series performance without abandoning the SQL ecosystem they already know. Sensor data, on-chain events, application metrics, customer behavior – if it's timestamped and high-volume, this is what it's built for.

The core abstraction is the hypertable: a regular Postgres table that's automatically partitioned by time (or ID) under the hood. Partition skipping at query planning means the database eliminates irrelevant chunks before scanning begins, so queries stay fast even as data grows into billions of rows.

Key capabilities:

  • Hybrid row/columnar storage – recent data stays in the rowstore for fast ingest and point lookups; older data auto-converts to columnar format for analytical scans, with SIMD-accelerated vectorized execution
  • Compression up to 95% – delta, dictionary, and RLE encodings compress historical data aggressively, and queries can filter directly on compressed data without decompressing first
  • Continuous aggregates – incrementally refreshed materialized views that update in parallel batches; real-time mode includes the latest uncommitted data so dashboards never go stale
  • ~200 time-series SQL functions – hyperfunctions cover time-weighted averages, interpolation, gap-filling, and partial aggregations that avoid reprocessing historical data
  • Automated data management – built-in job scheduler handles retention policies, columnstore conversion, and aggregate refresh with configurable retries and full auditability

Because it's 100% PostgreSQL-compatible, existing Postgres tooling, drivers, ORMs, and extensions all work without modification. That's a meaningful difference from purpose-built alternatives like InfluxDB, QuestDB, or TDengine, which require learning new query languages or migration overhead.

Cloudflare uses it to balance analytical performance with operational simplicity, keeping analytical and configuration data under one roof. The project has 22,000+ GitHub stars and an active Slack community of 12,000+ members.

Share:

23,807stars+155(+0.7%)

Last 30 days

  • Last commit

    11 hours ago
  • Repository age

    10 years
  • Version

    2.31.0
  • Self-hosted

    Yes
  • Repository

    timescaledb
Self-host in 3 steps
  1. 1

    Start a KVM 2 VPS on Hostinger

    Recommended plan for one-click apps.

  2. 2

    Apply code

    10% off any 12-month plan at checkout.

  3. 3

    Deploy TimescaleDb

    With Hostinger's one-click installer.

Host with Hostinger

 
Subscribe to our newsletter

Every Sunday we deconstruct one proprietary app and pick the best open source alternatives worth switching to.

Similar open source projects

  • Stars

  • Last commit

  • License

  • Stars

  • Last commit

  • License

  • Stars

  • Last commit

  • License

TimescaleDb: Open Source Alternative to Snowflake, InfluxDB, and more