Skip to content

Fixed timescaledb loader initialization#255

Open
Koheiru wants to merge 1 commit into
timescale:masterfrom
Koheiru:timescaledb-load-fix
Open

Fixed timescaledb loader initialization#255
Koheiru wants to merge 1 commit into
timescale:masterfrom
Koheiru:timescaledb-load-fix

Conversation

@Koheiru
Copy link
Copy Markdown

@Koheiru Koheiru commented Jun 6, 2024

At some point timescaledb's function create_hypertable became more strict and it starts to fail if 'replication_factor => NULL' part exists. In such case tsbs_load failed with error:

could not execute sql: SELECT create_hypertable('disk'::regclass, 'time'::name, replication_factor => NULL, chunk_time_interval => 43200000000, create_default_indexes=>FALSE)panic: ERROR: function create_hypertable(regclass, name, replication_factor => unknown, chunk_time_interval => bigint, create_default_indexes => boolean) does not exist (SQLSTATE 42883)

Other users also report about this issue: #248

To fix this issue timescaledb table initialization method was adjusted.

At some point timescaledb's function  became more strict,
so it failed if 'replication_factor => NULL' part exists.
Table initialization method was refactored to fix this
issue.

Signed-off-by: Koheiru <prosto_yurik@mail.ru>
@tomchon
Copy link
Copy Markdown

tomchon commented Jun 26, 2024

has anyone merged this fix into the master branch? @Koheiru

@basheer-taplane
Copy link
Copy Markdown

Why is this not merged yet? I am having the same issue.

@orcarex
Copy link
Copy Markdown

orcarex commented Mar 19, 2025

faced the same issue

evenyag added a commit to GreptimeTeam/tsbs that referenced this pull request Dec 5, 2025
Refer to timescale#255

Signed-off-by: evenyag <realevenyag@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants