Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

ts-restore didnt restore indexes on table #45

Open
pstefanowski opened this issue Aug 10, 2021 · 2 comments
Open

ts-restore didnt restore indexes on table #45

pstefanowski opened this issue Aug 10, 2021 · 2 comments

Comments

@pstefanowski
Copy link

Hi
Our backup strategy is using pg_dumpall for all databases (including these which use timescaledb). Recently found this repo and want to change for using ts-dump and ts-restore. Acidently found that ts-restore didn't restore indexes.

To reproduce:

  1. Should I be worry about missing indexes if I change to ts-dump/ts-restore?
  2. If I stay with pg_dumpall there should be some pitfalls for restoring backup?

Thanks for answer

@markandpathak
Copy link

markandpathak commented Sep 24, 2021

I am also having the same issue. The backup didn't restored the default indexes created when running create_hypertable. Why there are some items skipped in restore? I am seeing all indexes skipped in ts-restore command output. Anyone found solution to recreate missing default indexes?

@kdaveid
Copy link

kdaveid commented Oct 11, 2021

We can confirm this. Even on the same machine.

Steps to reproduce:

ts-dump --db-URI=postgresql://postgres:pass@localhost/db --dump-dir=/backups/db_backup

psql -U postgres -h localhost -d postgres -c "CREATE DATABASE db;"

ts-restore --db-URI=postgresql://postgres:pass@localhost/db_restore --dump-dir=/backups/db_backup

Some indexes, triggers etc. are missing - but not all!

Environment

Postgre 13
Timescale extension 2.4.2
Unix (Ubuntu 20.04 LTS)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants