Questions tagged [timescaledb]

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension. QUESTIONS MUST BE ABOUT PROGRAMMING in order to be on-topic on Stack Overflow. Specifically, database administration is not on-topic for Stack Overflow.

TimescaleDB

TimescaleDB is an open-source database designed to make SQL scalable for time-series data. It is engineered up from PostgreSQL, providing automatic partitioning across time and space (partitioning key). It speaks full SQL and is correspondingly easy to use like a traditional relational database, yet scales in ways previously reserved for NoSQL databases.

Compared to the trade-offs demanded by these two alternatives (relational vs. NoSQL), TimescaleDB offers the best of both worlds for time-series data:

Features

Easy to Use

  • Full SQL interface for all SQL natively supported by PostgreSQL (including secondary indexes, non-time based aggregates, sub-queries, JOINs, window functions).
  • Connects to any client or tool that speaks PostgreSQL, no changes needed.
  • Time-oriented features, API functions, and optimizations.
  • Robust support for Data retention policies.

Scalable

  • Transparent time/space partitioning for both scaling up (single node) and scaling out (forthcoming).
  • High data write rates (including batched commits, in-memory indexes, transactional support, support for data backfill).
  • Right-sized chunks (two-dimensional data partitions) on single nodes to ensure fast ingest even at large data sizes.
  • Parallelized operations across chunks and servers.

Reliable

  • Engineered up from PostgreSQL, packaged as an extension.
  • Proven foundations benefiting from 20+ years of PostgreSQL research (including streaming replication, backups).
  • Flexible management options (compatible with existing PostgreSQL ecosystem and tooling).

Resources

691 questions
3
votes
2 answers

postgresql with timescale upgrade

I have an installation of Postgresql 9.6.11 with shared library of Timescale 1.1.1 installed. I am trying to upgrade both of them, using in-place upgrade for Timescale and pg_upgrade for Postgres, i.e Postgresql to 11.5 and Timescale to 1.4. Which…
Nitesh Kumar Anand
  • 621
  • 1
  • 6
  • 18
3
votes
1 answer

Data retention in timescaledb

Trying to wrap my head around timescaledb, but my google-fu is failing me. Most likely because I'm not searching for the correct term. With RRD tool, old data can be stored as averages, reducing the amount of data being stored. I can't seem to find…
Troy
  • 33
  • 4
3
votes
1 answer

TimeScaleDB materialized row is too big

Summary I am stuck on a problem where the row limit on a Materialized View is exceeding the maximum allowed in a Postgres Database. Description The table named PAC4200_Metering has 108 fields that are all double precision fields. I would like to…
3
votes
1 answer

How to install TimescaleDB extension for postgress database with entity framework core

I want to use TimescaleDB on a specific table containing time-series data. The question I have is how to setup time-series from entity framework core and make a specific table a hyper table? Database: Postgress version 11 Framework: Ef Core…
Timon Post
  • 2,779
  • 1
  • 17
  • 32
3
votes
1 answer

What is the TimescaleDB way to manually consolidate aggregated data?

I have a rather common time-series set up: A TimescaleDB Hypertable (data) tracking some metrics over time. The columns are: timestamp, identifier, metric. The Hypertable has a continuous aggregation table (aggregated_data) that aggregates the…
JuiceOntour
  • 110
  • 4
3
votes
2 answers

Get 1 Year results from TimescaleDB

I have a table with data for IoT Devices, sending measurements every hour. Have to get reports for Today, Week, Month and Year. Using timescaleDB i got some "ok" results for Today, Week and Month. For example Monthly: SELECT time_bucket('4…
opHASnoNAME
  • 20,224
  • 26
  • 98
  • 143
3
votes
1 answer

Query to select data from database between 2 timestamps, Exception: time_bucket function does not exists?

I've been trying to write a query in Java to select data from postgres timescale database between 2 timestamps, but I keep getting Exception says that time_bucket function does not exists I cannot change the timestamp column in database to Date…
Bronfman
  • 51
  • 3
3
votes
2 answers

TimescaleDB and PipelineDB Integration

(I was going to post this on the DBA SE, but there's no timescale tag.) I'm using TimescaleDB to store a real-time stream of about 500-1000 inserts per second, and need to pass this data to a client application as soon as it comes in. I don't…
3
votes
1 answer

Table Properties "_timescaledb_cache" , _timescaledb_catalog, _timescaledb_internal" What are those doing?

Does anyone know what those settings are doing?Unlikely I couldn't find something that helps me understand this in Google. It is in Table Properties->Schema: _timescaledb_cache _timescaledb_catalog _timescaledb_internal
minzpulver
  • 37
  • 7
3
votes
1 answer

Migrate Postgres 9.6 Inherited Tables to TimeScaleDB

We have a time series table which is partitionied with inheritance. We now want to migrate this to TimeScaleDB within the same database. Documentation says to either use pg_dump/COPY or CREATE with LIKE. We could neither get to work with inherited…
KingOfCoders
  • 2,253
  • 2
  • 23
  • 34
2
votes
1 answer

Combine timeseries data into datapoints with start-end-intervals based on time difference

Description System: Postgres 13 + TimescaleDB I have a timeseries of messages containing error codes generated by devices in intervals of 300 seconds. This timeseries should be aggregated so that consequent error codes (over several continous…
dev-
  • 23
  • 3
2
votes
0 answers

Postgres query to get current and previous prices of product from prices history

There are tables with products and it's prices history and there is a need to have single row with current and previous prices (if exists and not equals current) of each product. Now, I have query with LATERAL JOINs (below) but it works very slow…
Andrew
  • 46
  • 3
2
votes
0 answers

Postgres table is taking too much space. 100k rows but 13 GB in size

I have a table, that just has 100k rows, still takes 13GB. Index on that able is another 5GB, taking total space on disk to 18GB. Size of the dump was 127MB. I have vaccuumed the table. Dead tupes is 0. Checked individual column sizes, they are 10…
2
votes
1 answer

How to set a max range condition with timescale time_bucket_gapfill() in order to not fill real missing values?

I'd like some advices to know if what I need to do is achievable with timescale functions. I've just found out I can use time_bucket_gapfill() to complete missing data, which is amazing! I need data each 5 minutes but I can receive 10 minutes, 30…
CamSim
  • 21
  • 2
2
votes
0 answers

postgres not releasing memory after big query

When I run a query in postgres it will load in memory all the data it needs for query execution but when the query finishes executing the memory consumed by postgres is not released. I run postgres with the Timescaledb extension installed, which…
Artur Safiullin
  • 134
  • 2
  • 8