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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
58 views

How to create an helm based timescaledb-single deployment on AWS EKS with persistent volume enabled [Error]

I have tried deploying the timescaledb-single via helm chart (0.33.1) on AWS EKS cluster. deployment is working fine without the "persistentVolumes" enabled mode for (data & wal) but if ...
Naman Joshi's user avatar
0 votes
1 answer
48 views

Inconsistent query result when joining with hypertable

In Postgresql this query returns sometimes rows, sometimes no rows. Data in tables not changing between runs. Table steam."TopWishlistHistory" is Hypertable (Timescale extension) Query: ...
gonzono's user avatar
2 votes
0 answers
22 views

Decompress chunk where shouldnt be

I have an Ignition installation feeding into a Postgres DB with TimescaleDB. The setup is as follows : Postgres 15 Hypertable with 100 parallel chunks, 12h interval Autocompression set to 24h In ...
Sim's user avatar
  • 67
1 vote
1 answer
57 views

How to change wal_level to logical in postgresql database when configured via Helm charts

I deployed timescale-postgresql using helm: Chart Name: timescalepostgres timescale/timescaledb-single --version 0.33.1 In the values.yaml file I kept the wal_level = logical, however after the ...
devnetops's user avatar
1 vote
3 answers
51 views

Are Primary Keys Recommended on a Timescale Hypertable?

I am about to receive timeseries data for some devices placed remotely and have decided to use Timescale hypertables to store the data. The data consists of: device_id timestamp value None of the ...
TemporalSpatialDude's user avatar
-1 votes
1 answer
56 views

PostgreSQL docker container suddenly failing to start

I have a Docker container (based on timescale/timescaledb-ha:pg14-latest) that I start like this: docker run -d --name timescaledb -p 127.0.0.1:5432:5432 \ -v /Users/<me>/timescaledb-data:/home/...
serlingpa's user avatar
  • 12.2k
0 votes
0 answers
28 views

Quarkus returning a Multi<> as Rest response

I have a question regarding Quarkus and Rest Responses. I'm not that experienced with micro services. I have an Quarkus backend, which is handling different types of rest requests. Uploading a file, ...
T. Franz's user avatar
0 votes
0 answers
72 views

Psycopg 3 & SQLAlchemy 2: what would cause DuplicatePreparedStatement in normal operation?

We are using SQLAlchemy in our application to interact with a TimescaleDB database with Psycopg as the database driver. Recently we started seeing this error every time the application tries to select ...
shadowtalker's user avatar
  • 12.8k
0 votes
0 answers
60 views

TimescaleDB via helm, parameter changes won't work

I've installed TimescaleDB via a helm chart on a Kubernetes cluster. And I want to adjust some settings in the postgresql.conf afterwards. My values.yml is the following: persistentVolumes: data: ...
wollud1969's user avatar
0 votes
2 answers
35 views

timescaledb or postgresql aggregation by getting time difference between two events

I collect device ON/OFF events in a timeseries table. Following is a sample data. time_stamp state 2023-10-04 10:05:53 0 2023-10-04 10:15:58 1 2023-10-04 10:30:59 0 2023-10-04 10:40:00 1 2023-...
user1145404's user avatar
0 votes
2 answers
53 views

How can I improve the performance of a query time series?

I have the following query to display the performance of a machine in 8-hour segments (although it can change to 1 hour, 1 week, 1 month, etc.). My table has 2 million records, and the query takes 10 ...
Isra's user avatar
  • 302
0 votes
1 answer
99 views

How to aggregate 1 minute candle data having OHLCV into higher timeframe candles (say 5 min, 30 min, 1 hr etc.) using TimeScaleDB?

I am storing this data in TimescaleDB. And my 1 min candles data is not 24x7, but a continuous block which is somewhere in the middle of day (market open - close). Also, assume this market timings are ...
sg08's user avatar
  • 1
0 votes
2 answers
148 views

Install timescaledb-toolkit in alpine linux

I have a docker image that is generated using https://github.com/timescale/timescaledb The base OS of my docker image is Alpine. Could not find any document that uses apk to install the toolkit
Amit Kumar's user avatar
1 vote
1 answer
68 views

SQL: Join tables using a value inside a JSON in Postgres

I'm using Grafana to access some PostgreSQL data (TimescaleDB). I have a 1st table called events that has one column called event, that is an object with this structure: {"response_body": &...
Eu Román's user avatar
  • 177
1 vote
1 answer
68 views

Issue with query performance after enabling compression in TimescaleDB

We've been experimenting with TimescaleDB, primarily on compression to address our disk space issues. However, we noticed an increase in query execution time after enabling compression. SELECT * ...
Sarin R's user avatar
  • 11
0 votes
1 answer
51 views

Weird UUID behavior after switching to timescaledb-ha

This is a copy of https://github.com/timescale/timescaledb-docker-ha/issues/417 We have been running a database on the regular timescaledb:latest-pg14 image. We have a table (let's call it entities) ...
Moritz Rinow's user avatar
0 votes
1 answer
99 views

Timescale counter_agg(double precision, double precision) does not exist

I have two tables in my database: table1 contains a time series of t vs var1 for a group of 5 different sensors – each sensor has its own id value; table2 that contains a time series of t vs var2 for ...
pook's user avatar
  • 41
0 votes
0 answers
70 views

Continuous Aggregation Materialized View, Timescale with Postgresql

I'm trying to create a continuous aggregation materialized view, the time bucket will be on yearly basis like this (time_bucket(INTERVAL '1 year', s.createdat) AS Createdat). Everything is working ...
Wasfi Alzoubi's user avatar
1 vote
1 answer
69 views

Migration TimeScaleDB using GoLang take too long?

My duty is migration a 1m5-rows-table from old TimeScaleDB to a new one. i did select with quantity is 200, offset started from 0, then load them into RAM and did the INSERT thing. i set the time to ...
ChienDuyNguyen1702's user avatar
0 votes
2 answers
96 views

pg_dump fails to dump specific schema

I am using pg_dump (15.3) to dump information on a database. This command works: pg_dump --schema-only --schema foo -d foodb -U postgres -Fp and dumps among other things a CREATE SCHEMA foo; statement ...
user2465039's user avatar
1 vote
1 answer
47 views

Storing semi-structured, key-value based data

I have IoT system where devices send data that doesn't strictly adhere to any specific schema, but there is always "telemetry" object. { "deviceId": "SimulatedDevice",...
OverflowStack's user avatar
0 votes
0 answers
153 views

TimescaleDB: How to avoid deadlocks on hypertables with a compression AND retention policy during SELECT?

I am getting deadlocks from postgres occasionally when attempting to execute a SELECT query on a hypertable with both a compression and retention policy. From the logs, it looks like the deadlock is ...
Nick W's user avatar
  • 135
0 votes
0 answers
95 views

Issue while upgrading Timescaledb from 1.7.5 to 2.x

postgres=# ALTER EXTENSION timescaledb UPDATE; ERROR: function _timescaledb_internal.ping_data_node(name) does not exist. I am performing an upgrade in a docker based setup with pg12 and timescaledb ...
vicky's user avatar
  • 16
0 votes
2 answers
37 views

Parallel table row processing across multiple service worker nodes

My system consists of Database (Timescale Db) and table telemetry_aggregations .Net Worker nodes (1...n) Every couple minutes, telemetry_aggregations table gets updated with couple hundreds of new ...
OverflowStack's user avatar
0 votes
1 answer
42 views

Get the state of a table at a single point of time using timescaledb

Given the following data: DROP TABLE IF EXISTS tbl; CREATE TABLE tbl(date_time TIMESTAMPTZ, position TEXT); INSERT INTO tbl(date_time, position) VALUES ('2022-01-01 11:00'::TIMESTAMPTZ, 'UP'), ...
baxx's user avatar
  • 4,123
1 vote
1 answer
40 views

Continous aggregate not covering entire time interval

I created a continuous aggregate with time bucket as 5 mins. While adding policy I gave policy as below: SELECT add_continuous_aggregate_policy('public.test_five_min_view', ...
Amit Kumar's user avatar
0 votes
1 answer
43 views

TimescaleDB - index on second timestamp column

I have a database table that looks like this: CREATE TABLE metric_readings( event_time timestamptz not null, insert_time timestamptz not null, reading double not null ) create hypertable('...
John P's user avatar
  • 1,550
0 votes
1 answer
66 views

Get complete hours time_buckets with timescaledb

I am trying to use timescaledb time_buckets to get an aggregated energy use per hour. The problem is that these hourly buckets do not take into account the record after exactly one full hour. So from ...
atoomkern's user avatar
0 votes
1 answer
99 views

timescaledb throws Operation not permitted error on /var/lib/postgresql/pgdata while using with Amazon EFS

I am using timescaledb-multinode helm charts I want to use Amazon EFS instead of local provisioner, so changed the storageClass inside the values.yaml file to efs-cs. I am getting the below error in ...
Manoj Kumar Maharana's user avatar
-1 votes
2 answers
42 views

Does Timescale DB supports compression for geography type?

We use Timescale DB to store some data received from GPS trackers. Among the other metrics we, obviously, have the location value which is mapped to the geography(PointZ,4326) type. I'm concerned ...
rtf_leg's user avatar
  • 1,799
0 votes
2 answers
100 views

I am confused with PostgresQL/Timescale indexing

I have created a table like this CREATE TABLE IF NOT EXISTS public.table_name( id SERIAL PRIMARY KEY, user_id int4 NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT NOW(), ); SELECT ...
Adnan Sabbir's user avatar
0 votes
0 answers
122 views

Flink's Postgresql jdbc sink reWriteBatchedInserts not working as expected

I'm developing a Flink stream application, one of my sinks is a timescale hypertable (Postgres JdbcSink) and the connection Url specifies reWriteBatchedInserts=true. Flink version is 1.16.2 Timescale ...
LucaD's user avatar
  • 23
0 votes
1 answer
30 views

I'm seeking assistance in configuring the WAL rotation to address an issue with memory exhausted in TimescaleDB

I am utilizing the official single-node Helm chart for TimescaleDB 1.7.0 in my operations. We recently implemented a data pipeline involving a substantial influx of write operations per second. ...
KOstas's user avatar
  • 79
0 votes
2 answers
60 views

Choosing the correct setup for a timeseries database

I'm seeking advice on how to optimize my timeseries database setup, which should handle a large volume of time-series data. I have around 20,000 time-series profiles with a one-year duration, using a ...
Hannes 's user avatar
0 votes
1 answer
66 views

Where does the column decompression happen in TimescaleDB at query time and how does it affect IOPS?

At query time, does the column decompression in TimescaleDB happen all on disk and we incur the cost of reading all the decompressed data in terms of IOPS ? If anyone also knows the answer to this for ...
sm_'s user avatar
  • 2,592
0 votes
1 answer
97 views

Copy data from csv file that has milliseconds timestamp

I need to import data from a csv file that contains milliseconds timestamp. When i using \COPY command to copy from the file, i get this error: ERROR: date/time field value out of range: "...
John Smith's user avatar
0 votes
0 answers
41 views

Unable to view 15 MB Json data which I stored as JSONB data type in pgadmin4 version 7.1

I am using timescale db to store timeseries data and json data. Why I unable to view 15 MB json data in table column which is JSONB datatype in pgadmin tool ? I am usning timescale db to store ...
Ravi sankar's user avatar
0 votes
1 answer
117 views

TimescaleDB Continuous Aggregation policy does not materialize view

I have the following Hierarchical continuous aggregates: CREATE MATERIALIZED VIEW panel_power_data_hourly WITH (timescaledb.continuous) AS select time_bucket('1 hour', time) as bucket_hourly, avg(...
Antonwy's user avatar
  • 41
3 votes
0 answers
150 views

TimescaleDB continuous aggregation custom time_bucket function

We have a device for temperature collecting, it is configured to collect the temperature of the refrigerator box each second in the buffer (but can collect even fewer periods 10ms, 100ms) and at the ...
Sanprof's user avatar
  • 379
1 vote
1 answer
63 views

Timescale indexing issue (huge load average)

We are developing gps monitoring system, and using timescale to store time-series data from our devices We have “locations” table, that stores location data from device. IMEI is device ID. We have ...
tttttv's user avatar
  • 11
0 votes
1 answer
2k views

Hibernate Native Query With Panache Repository In Reactive Quarkus (With Mutiny) for PostgreSQL Timescale DB

I am try to write native query to use the features of the PostgreSQL Timescale DB in quarkus application. This application use reactive features with Munity. https://docs.timescale.com/api/latest/...
Kavishka Madhushan's user avatar
0 votes
1 answer
33 views

continuous aggregate is too slower than hypertable

timescale-db continuous aggregate materialized only = true is about 100 times faster than materialized only = false. i expect to continuous aggregate be faster than calculate from real time. but real ...
user27962's user avatar
0 votes
1 answer
106 views

Timescale multidimension partitioning

I created a multi dimensional hypertable with the id as a 2nd dimension : SELECT create_hypertable( '<table>', '<tstamp>', 'id', 1080, migrate_data => true, ...
Sim's user avatar
  • 67
1 vote
1 answer
113 views

TimescaleDB Multiple Replica Active Slot Error

Dockerfile FROM timescale/timescaledb:latest-pg14 ADD replication.sh /docker-entrypoint-initdb.d/ docker-compose.yml version: '3.9' services: pg-master: image: 'pg-replication:latest' ...
SefaUn's user avatar
  • 844
0 votes
2 answers
133 views

postgres: partial refresh on materialized view?

I have this materialized view: Materialized view "public.kwh_tag" Column | Type | Collation | Nullable | Default | Storage | Stats target ...
fsp's user avatar
  • 515
0 votes
1 answer
112 views

TimescaleDB time_bucket_gapfill: locf prev argument

I have a timescale database with a table consisting of IoT device data: value (Integer) | device_id (ForeignKey) | time (timestamp with timezone) 5 | device_1 | 2023-01-01 ...
serturx's user avatar
0 votes
1 answer
39 views

How to create a continuous aggregate refresh policy when dealing with integer time?

When dealing with integer time (in millisecond), what values should be passed to the start_offset and end_offset while creating an automatic refresh policy for a Continuous Aggregate ?. Let say, I ...
Harsh Sharma's user avatar
0 votes
0 answers
150 views

Query very slow when using psycopg2 with TimescaleDB

I am using psygopg2 to connect to a TimescaleDB instance. I want to query the latest entries from a big table (35 million rows) containing price information of assets with the columns datetime, ...
trivicious's user avatar
0 votes
1 answer
298 views

What does "all", "oss", "all-oss" mean in the Docker image tag of timescale/timescaledb-ha?

TimescaleDB Docker image has many tags. Here are some of them: pg15.3-ts2.10.3-all pg15.3-ts2.10.3-all-oss pg15.3-ts2.10.3-oss I can understand pg15.3 means Postgres 15.3 ts2.10.3 means ...
Hongbo Miao's user avatar
  • 46.5k
1 vote
0 answers
47 views

Timescaledb in docker is taking much more space than the total table sizes

I am runnning timescaledb in docker using below commands docker volume create --driver local --name timescale-new --opt type=none --opt device=/u01/workspace/docker-data/timescale --opt o=uid=root,gid=...
devesh joshi's user avatar

1
2 3 4 5
14