-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: invalid INSERT on the root table of hypertable "table" HINT: Make sure the TimescaleDB extension has been preloaded. #86
Comments
Same issue here, it was working yesterday and today, everything inserts started to fail. |
Same issue with me as well. |
What's the recommended way to bootstrap the timescaldb with the hypertables within a docker container? |
+1 |
I started experiencing this as well after performing pg_dump/pg_restore per the instructionms on the site.
Yet no inserts can successfully write to that table. I've got concerns about timescaledb if I can't reliably backup/restore the db. |
In my case the reason was that the backup was version 1.7, and restored to 2.0 |
Same issue here with PG 11 and timescale 1.5.1. Source DB and target DB for backup and restore respectively have the same timescale extension on public schema. Restoring using psql instead of pg_restore as per the instructions here. |
Closing this since those are very old versions. Problems with backup/restore should better be reported to the main repo as they will get more visibility there. |
This problem stil exists on postgres 14 |
I encountered the same issue. The solution is https://docs.timescale.com/timescaledb/latest/how-to-guides/backup-and-restore/pg-dump-and-restore/ as #86 (comment). |
This issue still happens on the current version. I had it yesterday after doing a database migration with Timescale their hypershift tool (which is basically a faster way of dumping and restoring) Some notes on this:
After I switched, this started happening: As a result, I had to roll back the production migration and revert to the source database, which was quite painful. While I should probably have checked if inserts were working before fully switching over, I find it concerning that I'm unable to reliably migrate a production database even when utilizing Timescale's own tools. My only solution right now seems to move the data away from Timescale and try again. |
@svenklemm can you please re-open this ticket? I have exactly the same issue as @th0mk Migrated with hypershift from Timescale Managed to Timescale Cloud and yet I'm getting ERROR: invalid INSERT on the root table of hypertable "_hyper_1_76_chunk"
HINT: Make sure the TimescaleDB extension has been preloaded. Context: |
Just leaving here the steps that, apparently, solved my issue
YAML config for hypershift: verify: true
create_db: false Note: I'm not sure why I had to create the |
Thanks for the extra info. I had already installed the |
That's the strange part because I also enabled I called
then called List of installed extensions
Name | Version | Schema | Description
-------------+---------+--------+---------------------------------------------------------------------------------------
timescaledb | 2.11.1 | public | Enables scalable inserts and complex queries for time-series data (Community Edition) I'm not sure what's going on but something isn't right |
psql (12.6 (Ubuntu 12.6-1.pgdg18.04+1), server 12.15 (Ubuntu 12.15-1.pgdg18.04+1)) |
I am having this issue also and pgadmin shows no inserts when I have been expecting many inserts. |
Just in case someone needs this. Then checked my log messages again and found this
Then checked the constrains of the Solution: I manually removed the |
Just faced this, thanks for the notes even on closed issue 🤓 For those who wouldn't know, the query to execute was You can run it in (Remember to replace |
Thanks @AndreMaz , that was the issue for me as well ! |
I use the docker image : timescale/timescaledb:latest-pg10
but when i insert into table.the error is
The text was updated successfully, but these errors were encountered: