TimescaleDB for time-series data on self-hosted PostgreSQL

TimescaleDB adds time-series storage to PostgreSQL through hypertables and a columnstore. This page covers the edition and license decision, the build sequence, what drives effort, and how the extension is kept aligned with PostgreSQL upgrades on infrastructure you control.

On this page

TimescaleDB implementation starts with the edition, not the install command

Choose the TimescaleDB edition before you write any build plan. TimescaleDB adds time-series capabilities to PostgreSQL, and the two editions that matter for self-hosting carry different licenses. The Apache 2 Edition is licensed under Apache 2.0 and runs for free on your own infrastructure. The Community Edition, the most feature complete version, is licensed under the Tiger Data License (TSL). Teams that store high volumes of timestamped data in PostgreSQL usually reach this decision when ingest grows and ordinary tables become hard to query, prune and compress. The module brings hypertables, which partition a table by time behind a single logical table, and the columnstore, which compresses older chunks for analytical scans. Both run on the PostgreSQL you already operate, so the database team keeps control of hosting, backups and access.

The two editions need separate decisions because they change what you can build and what your legal team must review. Run SHOW timescaledb.license; after installation to confirm the mode: it returns timescale when Community Edition features are enabled, which is the default, and apache in Apache 2-only mode. Before build work starts, list which features your workload depends on, such as compression or continuous aggregates, and check them against the edition documentation in the TimescaleDB editions documentation. Ask counsel to read the Tiger Data License terms for your intended use, including whether you offer the database as a service to others. Changing the mode later can require rework of tables, policies and application queries, so record the decision in the design document.

Once the edition is settled, plan the extension's version in the same way you plan the PostgreSQL major version. TimescaleDB releases must match the PostgreSQL major versions they support, so confirm that pairing for your target PostgreSQL version before you schedule an upgrade. Ask your upgrade plan to include the extension as a named step, with a test on a restored copy of production data. Owners should also confirm which edition each environment runs, so that development, staging and production do not drift apart under different licenses.

What TimescaleDB adds to a self-hosted PostgreSQL database

TimescaleDB runs as an extension inside your PostgreSQL server, so the components below change how tables are created, stored and queried without moving data to a separate system. Each card names one component or check to settle before the build starts, and the edition you choose affects several of them.

Hypertables for time-partitioned tables

A hypertable is the main TimescaleDB abstraction: you create a table that looks like an ordinary PostgreSQL table, and the extension splits its rows into chunks by time behind the scenes. Applications keep writing and querying one table name, while the database manages the underlying partitions. Before you build, decide the time column, the partitioning interval and which other columns you filter on most often. Confirm the chunk interval guidance and index behavior for your chosen edition in the current TimescaleDB docs, because these choices are hard to change once data is loaded.

Editions docs

Columnstore for compressed analytical storage

The columnstore stores older or bulk-loaded time-series data in a compressed, column-oriented layout intended for analytical scans over large ranges. It changes storage footprint, write patterns and how recent data is queried, so it is not a drop-in setting for every table. Ask your team which data is append-only, how far back queries reach and whether late-arriving rows are common. Confirm compression behavior, supported operations on compressed chunks and edition availability in the current documentation before you commit a retention design.

Extension loading and license check

TimescaleDB must be listed in the server's shared preload configuration and created as an extension in each database that uses it, so a missing preload entry is a common first-day failure. The license mode is exposed through a configuration parameter: timescaledb.license reports timescale when Community Edition features are enabled, which is the default, or apache in Apache 2-only mode. Check the value in every environment after install, since a staging build and a production build can differ. Make this check part of your deployment runbook.

Apache 2 edition versus Community Edition

The Apache 2 Edition is licensed under Apache 2.0 and can run for free on your own infrastructure, while the Community Edition, the most feature complete version, is licensed under the Tiger Data License and is free if you manage your own service. The practical question is which features your design needs and whether your legal team accepts the Tiger Data License terms for a self-managed service. Build a feature list from your requirements, then map each feature to the edition that supports it. Do not assume feature parity between the two editions.

Editions docs

Edition-specific features and the mode switch

Feature differences between editions are the item most likely to change between releases, so the list in your design document should come from the current editions page, not from memory or a blog post. Mixing the two modes in one fleet causes confusion when a feature works on one server and fails on another. Record which edition each cluster runs, confirm the timescaledb.license value on each node, and plan how a switch between modes would be tested. Ask your vendor or the TimescaleDB repository for any edition change notes that apply to your version.

TimescaleDB repository

Apache 2 Edition or Community Edition: what the license lets you do

The Apache 2 Edition of TimescaleDB is available under the Apache 2.0 license and, according to the TimescaleDB editions documentation, can be run for free on your own infrastructure. It is the edition to choose when your organization wants the open-source core without Community Edition features, or when license review requires that every component fall under Apache 2.0. Both editions install as the same extension on your PostgreSQL servers, so the decision is about which feature set your build is allowed to use, not about a different database engine.

  • Free on your infrastructure: The docs state that this edition can be run for free on your own infrastructure under Apache 2.0.
  • Feature set: It is the core extension without the Community Edition features, so hypertables and the core time-series behavior are available, while features named as Community-only are not.
  • Licensing check: Run SHOW timescaledb.license; after startup. The value apache confirms Apache 2-only mode.
  • Config switch: Confirm with the TimescaleDB documentation how the timescaledb.license setting is changed and whether a restart is required.
  • Build impact: Test your schema, compression and retention design against this edition before committing, so that a later move to Community features is a planned decision.

Confirm the exact feature list for this edition against the current editions page before you write it into a design document.

Configuration decisions and when each option fits

This table compares the choices a team must settle before loading time-series data into TimescaleDB on its own PostgreSQL. Read each row as a decision point, then check the options against your data volumes, retention rules and the vendor documentation listed in the last column. The main takeaway is that edition, PostgreSQL version and time column are hard to change later, so settle them first.

DecisionOptionsWhen each fitsWhat to confirm with the vendor docs
Edition and license modeApache 2 Edition or Community Edition (Tiger Data License)Apache 2 Edition fits if your policy allows only Apache 2.0 code and you do not need Community features. Community Edition fits if you need its more complete feature set and your legal team accepts the Tiger Data License terms for self-managed use.Which features are limited to each edition, and how the license setting is confirmed on each node with SHOW timescaledb.license.
PostgreSQL major version pairingRun the extension on a supported PostgreSQL major (14 to 18 at the time of writing)Pick a PostgreSQL major still inside its support window for the full planned life of the system. Newer majors suit new builds, while older supported majors suit estates already certified against an extension build.Which TimescaleDB releases support each PostgreSQL major, and the compatibility matrix for your planned version.
Hypertable time columnTimestamp or timestamptz column, or an integer time column with a defined time scaleUse a timestamp with time zone when events come from several regions or devices with different clocks. Use an integer time column only when the source system already emits a monotonic time value and you can document its unit.Supported column types for hypertables and how the time column is set when the hypertable is created.
Chunk intervalDefault chunk interval, or a chosen interval based on ingest rate and query windowShorter chunks suit high-rate ingest and queries limited to recent data. Longer chunks suit low-rate data and queries spanning wide ranges. Changing the interval later affects new chunks only, so plan it against measured ingest.How chunk interval changes apply to existing chunks and how to inspect chunk sizes in your own environment.
Columnstore for older dataKeep all data as row storage, or convert older chunks to the columnstoreConvert older, rarely changed chunks when storage and analytical scans matter more than row-level updates. Keep recent chunks in row form when they receive frequent updates or late-arriving rows.Which operations are supported on compressed or columnstore chunks, and how to confirm query and write behavior before enabling it on production data.
Retention and deletion policyAutomated drop of old chunks, manual deletion, or archiving before deletionAutomated retention suits data with a fixed legal or business life. Archive first when a compliance or audit requirement says data must be kept longer than the working store holds it. Check any retention rule against the records you must keep under your own policy.How retention policies run, whether they are job-based, and how dropped chunks interact with backups and replicas.
Own replicas for the clusterSingle primary, or primary with hot standby replicas using streaming replicationA single primary fits non-critical analytics where data can be reloaded. Standby replicas fit systems where ingest or query loss during a server failure is unacceptable, and they need a failover tool outside PostgreSQL.Whether the extension and its background jobs behave correctly on standbys, and where scheduled policy jobs run in a replicated cluster.
Extension upgrade timingUpgrade the extension with PostgreSQL, or on its own schedulePlan extension upgrades as a paired change with each PostgreSQL major upgrade. Minor PostgreSQL updates may allow separate extension changes, which suits teams that need tighter control over each step.The upgrade path for each extension version, the order of PostgreSQL and extension upgrades, and the required post-upgrade checks.

How TimescaleDB sits inside the PostgreSQL cluster

The diagram starts with the application writing time-series rows to the primary PostgreSQL server, which has TimescaleDB loaded as an extension. A connection pooler sits between the application and the primary. The primary streams WAL to a hot standby that serves read-only queries, and it ships WAL archives and base backups to storage the team controls. Everything inside the dashed boundary is your infrastructure. Check that the standby, the archive and the backup targets all run the same extension build, and that the monitoring path reaches each server.

Writes flow through a pooler to the primary, with standby, archive and monitoring paths inside your boundary.

Implementation sequence and the output of each step

The sequence moves from edition and license decisions through a test cluster, hypertable design and a restore rehearsal before anything reaches production. Each step closes with a named output so the team knows what it can hand to the next step.

  1. Confirm edition and license requirements

    Before installing anything, the platform owner and legal or compliance reviewer decide whether the Apache 2 Edition is enough or whether the Community Edition features are needed, since the choice determines the license under which the extension runs. Review the TimescaleDB editions documentation and record which features the workload depends on. The output is a short decision record naming the edition, the license that applies, and the owner who signed it off. Confirm the license terms with counsel rather than relying on this summary.

  2. Pair the extension with a supported PostgreSQL major

    The database administrator checks the TimescaleDB compatibility matrix against the PostgreSQL major version already in use or planned, and confirms that major is still inside its support window. Supported majors and end-of-life dates come from the PostgreSQL versioning policy, so check them there before choosing. The output is a version pairing sheet listing the PostgreSQL major, the TimescaleDB version, the operating system package source, and the date by which the pairing must be revisited. If the pairing is not documented for the chosen major, the team should change the major, not the extension.

  3. Install and load the extension in a test cluster

    The platform engineer installs the extension on a non-production PostgreSQL cluster built the same way as production, using the packaging method the team has standardized on. Exact install commands and the preload library settings depend on that packaging, so confirm them against the TimescaleDB installation docs before running anything. The cluster must restart cleanly with the extension loaded and the extension must be created in the target database. The output is a test cluster with a recorded install log and a version query result.

  4. Verify the license setting

    After loading, the database administrator runs the license show command against the test cluster to confirm which mode is active. According to the TimescaleDB editions documentation, the setting returns timescale when Community Edition features are enabled, which is the default, and apache in Apache 2-only mode. Compare the result with the decision record from the first step. If they differ, correct the configuration before any schema work begins. The output is a signed check showing the license mode, the configuration file that sets it, and the date of the check.

  5. Design hypertables and retention on sample data

    The data engineer loads representative sample data into the test cluster and creates hypertables with a chosen time partitioning column, chunk interval and retention policy. The design should reflect how the data arrives, how late-arriving records are handled, and which queries run most often. Test the retention job on the sample data to confirm that old chunks are removed as expected. The output is a schema and policy document with the chunk interval rationale, the retention rule, and the test results showing chunk creation and removal behaved as designed.

  6. Load a migration sample and check query plans

    The team loads a migration sample drawn from the source system, ideally a slice that includes peak write periods and the largest tables, then runs the production query set against it. The database administrator reviews the query plans with EXPLAIN to confirm chunk exclusion works for time-bounded queries and that indexes match the access pattern. Repeat the plan review after any index or chunk interval change. The output is a query plan report listing each critical query, its plan, and any index or schema changes recorded as decisions.

  7. Rehearse a point-in-time restore with hypertable chunks

    The backup owner performs a point-in-time recovery rehearsal on the test cluster using the base backup and archived WAL that the production design will use. The rehearsal must confirm that hypertable chunks, their metadata and the extension objects come back consistent with the target time, and that the restored database loads the extension and reports the expected license mode. Compare restored row counts and sample queries against the source for a known timestamp. The output is a restore record with the target time, the steps taken, the verification queries and their results, and any gaps the team must close before go-live.

  8. Promote the design to production

    The platform team applies the tested install steps, configuration, license setting, schema and retention policies to the production cluster through a controlled change, with the same PostgreSQL and TimescaleDB pairing used in testing. Confirm that monitoring covers chunk growth, retention job runs and query latency, and schedule a re-check of the version pairing before the next PostgreSQL major upgrade. The output is a production readiness record covering the change ticket, the post-deployment verification queries, the monitoring coverage, and the owner of the upgrade check.

How the extension survives a PostgreSQL major upgrade

PostgreSQL ships a new major version about once a year and supports each one for five years, so a TimescaleDB deployment will face a major upgrade on a regular cycle. Minor releases never change the internal storage format, so they only require replacing executables and restarting. Major upgrades are different: they use pg_dumpall and restore, pg_upgrade, or logical replication, and each path interacts with the extension in its own way. Before any upgrade, the team must confirm that the TimescaleDB version it runs supports the target PostgreSQL major. Check the supported version pairs in the TimescaleDB editions documentation at planning time, because pairs change as both projects release. Treat that check as the first gate in the change, not a step to run on the day.

The upgrade sequence is the responsibility of your team or your partner, and it should be written down before the change window. The order is: confirm the extension compatibility for the target major, run a test upgrade against a copy of production data that includes hypertables, compression and continuous aggregates, then define a rollback plan with a verified backup and a documented way to return to the previous binaries. The chosen method changes the extension steps. With pg_upgrade, the extension packages must be installed for both the old and new binaries before the run, and the timescaledb extension must be updated afterward with its own update step, with the library loaded in shared_preload_libraries checked on the new cluster. With logical replication, the new cluster is a separate database, so the extension must be installed there first, and hypertable objects must be created and replicated in a way the tested runbook covers. Confirm exactly which objects replicate in your TimescaleDB version before you rely on that path.

What drives the effort and cost of a TimescaleDB build

This table lists the factors that change how much planning, build, testing and handover work a TimescaleDB deployment needs, and what each one does to the effort. Read it before asking a partner for a quote, because the same rows will shape the written scope. The main takeaway is that the edition decision, the PostgreSQL major version and the number of query consumers usually matter more than raw table count.

DriverWhy it changes effortHow to keep it down
Data volume and ingest rateHigher sustained inserts need more load testing, chunk sizing review, storage capacity planning and backup sizing before go-live.Measure real ingest from a pilot feed, and agree a test profile in writing so the load test matches production.
Number of hypertables and retention rulesEach hypertable needs chunk interval decisions, retention policies, and tests that prove old data is dropped on schedule.Group similar signals into fewer hypertables where the access pattern allows, and limit retention rules to documented policies.
Columnstore on historical dataEnabling compression on older chunks adds design of segmentation and ordering keys, plus verification that queries and restores still behave.Start with the data that is rarely changed and queried by time range, and confirm the compression settings on a copy before applying them broadly.
License and edition decisionChoosing between the Apache 2 edition and Community Edition changes which features are available and what the license terms require in your build and handover documents.Confirm the required features against the TimescaleDB editions documentation and record the decision, with the reason, before the build starts.
PostgreSQL major version alignmentThe extension must match the PostgreSQL major version in use, so an existing cluster on an older major may need an upgrade plan before TimescaleDB can be added.Inventory current PostgreSQL and extension versions early, and plan the TimescaleDB upgrade as part of each PostgreSQL major upgrade rather than as a separate project.
High availability and backup scopeReplicas, failover tooling and point-in-time recovery must be tested with hypertables and chunks, which adds restore tests and runbooks.Reuse the cluster's existing replication and backup design where it already meets your recovery targets, and scope restore tests to the hypertable data that matters.
Number of client applicationsEach consuming application needs its own queries, connection handling, access roles and performance checks, and each one adds review time.Limit direct access by routing consumers through a small number of views or roles, and agree the query list before the build.

How TimescaleDB connects to the rest of the platform

A TimescaleDB deployment sits on top of PostgreSQL, so it inherits every integration that PostgreSQL needs for high availability, recovery, pooling, monitoring and access control. Each of the cards below is a dependency to design before go-live, and each one needs a specific decision about the hypertable setup.

High availability and replication

Streaming replication copies the TimescaleDB catalog and hypertable data to standbys, and PostgreSQL offers both synchronous replication, where a commit waits for standbys, and asynchronous replication. Choose the mode based on how much recent ingested data you can afford to lose during a failover. PostgreSQL does not detect a failed primary on its own, so you need an external failover tool. Confirm with your vendor and in your own test environment that the chosen failover tool promotes a standby without breaking the extension's background workers or continuous jobs.

PostgreSQL HA docs

Continuous archiving and point-in-time recovery

Point-in-time recovery combines a base backup with archived WAL files, and pg_basebackup can take incremental backups that pg_combinebackup reconstructs at restore time. Time-series tables grow quickly and often hold chunks that are rarely changed, so test whether your backup tool handles chunk-level data and compression as expected. Restore a full cluster into a separate environment and run queries against recent hypertable chunks to prove the recovery point you have committed to.

Continuous archiving docs

PgBouncer pooling in front of the cluster

PgBouncer is a lightweight connection pooler that many teams place in front of PostgreSQL to limit server connections from ingest agents and dashboards. Time-series writers often hold many short-lived connections, so pool mode and the limits per database and user must match how your collectors batch inserts. Check that session-level settings used by your ingest path still behave correctly in the pool mode you pick, and confirm that the version you deploy includes current security fixes.

PgBouncer site

Metrics and dashboards with Prometheus and Grafana

Prometheus collects metrics and Grafana visualizes them, so you can watch ingest rate, chunk counts, compression jobs and replication lag from one place. Use a PostgreSQL exporter for database metrics and add the TimescaleDB views you rely on, such as job status, so failed policy runs raise alerts. Confirm which TimescaleDB metrics your exporter exposes, because the exporter does not expose all extension internals by default.

Log shipping and audit logging

Database logs and audit records need to reach your central log platform in a form that security and compliance teams can query. Ship PostgreSQL server logs, and any audit extension you run such as the pgAudit module, to your SIEM or log store. Confirm how log volume scales with high-frequency inserts, since per-statement audit logging on a busy ingest path can overwhelm storage. Decide which statement classes are required and which would only add noise.

Data consumers and BI tools

BI tools and application APIs query hypertables through standard SQL, so the access model and query patterns they use affect performance and governance. Connect Metabase, Superset or your own API through a dedicated read role and, where possible, a read replica so dashboards do not compete with ingest. Test that continuous aggregates and time bucket queries return the results your dashboards expect after a major upgrade, and confirm that the chosen driver supports the functions your queries use.

Questions teams ask before hiring a partner for TimescaleDB

How much does a TimescaleDB implementation cost?

The cost depends on the written scope, so no single figure applies. The main cost components are planning and sizing, installing the extension on your PostgreSQL servers, designing hypertables and chunk intervals, configuring compression and the columnstore, setting up retention and continuous aggregates, and testing backup and restore. Costs rise with the number of data sources, the data volume and retention period, the number of environments, and how many integrations must be built. Recurring costs include upgrades and any retainer for ongoing support. Ask for a quote that separates one-time build work from recurring support, lists each deliverable, and names the environments covered. DeployOpen does not publish a price list; a quote follows from the written scope.

How long does a TimescaleDB project take?

Duration depends on the number of hypertables, the ingest rate, retention requirements, the number of downstream consumers and how much of the work your team can review in parallel. Schema and sizing decisions usually take longer than the installation itself, and testing with realistic data volumes often sets the critical path. Your timeline should appear in the written scope with milestones for design, build, testing and handover. Ask any partner to show which items depend on your team's availability, such as access to staging systems, data samples and change windows.

What does our team need to provide during the engagement?

Expect to provide access to PostgreSQL servers or the infrastructure that hosts them, a staging environment that resembles production, sample data with its ingest pattern and query workload, and named owners for database administration, security review and change approval. You will also need to state retention rules, recovery targets and which dashboards or applications read the data. Delays usually come from missing query examples or unclear ownership of the production change window, so confirm these items before work starts.

Can our internal team build and run TimescaleDB without a partner?

Yes, if your team already runs PostgreSQL in production and has capacity to learn the extension's chunking, compression and retention behavior. A partner adds value when you need a fixed-scope design review, a tested upgrade plan, or evidence for an assessment. Assess your team against the work list in this guide: installation, schema design, performance testing, backup and restore testing, monitoring, and upgrades. Gaps in any of these are the signal to bring in outside help for that part only.

Which TimescaleDB license applies to a self-managed service?

The answer depends on which edition you install and which features you enable. The Apache 2 Edition is available under the Apache 2.0 license and can run for free on your own infrastructure. The Community Edition is the most feature complete version, is available under the Tiger Data License, and is free if you manage your own service. Check the timescaledb.license setting: it reports timescale when Community Edition features are enabled, which is the default, or apache in Apache 2-only mode. Have your legal team review the license terms against your intended use before you choose a configuration.

How is the TimescaleDB extension handled during PostgreSQL upgrades?

The extension must be compatible with both the PostgreSQL major version and the TimescaleDB version you target, so each PostgreSQL major upgrade needs its own compatibility check. Plan the upgrade in a staging copy first, confirm the extension version pairing in the vendor documentation, and test queries, compression jobs and continuous aggregates after the move. The PostgreSQL upgrade options include pg_upgrade, pg_dumpall with restore, and logical replication, and each interacts with extensions differently. Ask any partner to document the sequence and rollback path in the written scope.

Has a restore of our TimescaleDB data been tested?

A backup is only useful after a restore has been run and checked. Test restores should cover the full database including hypertables, compressed chunks, continuous aggregates and scheduled jobs, not only table row counts. Point-in-time recovery depends on a base backup plus archived WAL files, so test that the archive chain can be replayed to a chosen time. Record the time each restore takes so you can compare it with your recovery targets. Ask for a restore test report as a named deliverable in the written scope.

Does DeployOpen issue compliance certificates for TimescaleDB deployments?

No. DeployOpen does not issue audit reports, attestations or certifications. It prepares systems, controls and evidence for compliance assessments, and independent auditors or certification bodies perform the assessment. For a TimescaleDB deployment this can include access settings, backup and restore records, change logs and configuration documentation. Ask your assessor which evidence they need before scoping the work, so the deliverables match what they will review.

How DeployOpen scopes and delivers a TimescaleDB implementation

DeployOpen plans, builds, tests and hands over TimescaleDB on PostgreSQL servers and storage that your organization controls. Each engagement starts with a written scope that names the edition, the PostgreSQL major version and the upgrade path before any extension is installed.

How we scope

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • The scope names the TimescaleDB edition, the license mode and the PostgreSQL major version the extension must track.
  • We record hypertable design, retention, columnstore policy and the data sources feeding the database.

How we build

  • We install the extension on a staging cluster that matches production PostgreSQL and operating system versions.
  • We configure hypertables, chunk intervals, compression and columnstore settings against your query and retention needs.
  • We test backups and point-in-time recovery with hypertables in place, then rehearse a PostgreSQL major upgrade with the extension.

How we hand over

  • You receive configuration, schema and policy definitions, and the runbook for upgrading PostgreSQL and TimescaleDB together.
  • We document how to check the active license mode with the timescaledb.license setting and what each mode permits.
  • Handover includes a restore test record and a monitoring checklist for chunk growth, job failures and disk use.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover extension version tracking against each PostgreSQL minor and major release in your environment.
  • Support scope is set in writing, so you know which upgrades, restores and tuning requests are included.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.