Quantcast
Channel: TimescaleDB and PostgreSQL - TigerData Community Forum
Viewing all articles
Browse latest Browse all 339

Backup and restore without being the owner of the database

$
0
0

Hi,

I am trying to backup/pg_dump my entire database (500GB) and when I restore it, there is no data in the timescaledb tables :frowning:

I read the documentation and found this : Timescale Documentation | Migrate the entire database at once which says that I should first SELECT timescaledb_pre_restore(); then pg_restore ... and then SELECT timescaledb_post_restore(); and finally do ANALYZE;

The problem is that SELECT timescaledb_pre_restore(); can only be done by the owner of the database, and I use a database managed by Scaleway which means I am not the owner, which means I can’t do SELECT timescaledb_pre_restore();.

The only alternative I see is to dump the data into CSV files and then restore it as described here : Timescale Documentation | Migrate schema and data separately
But it’s a lot more complex than what I expected by using timescaledb.

Do you have any advice ?

Best Regards
Carlos

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 339

Trending Articles