-
Notifications
You must be signed in to change notification settings - Fork 900
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
Unsightly warnings during pg_dump #3189
Comments
@victor-sudakov Thank you for reporting this issue. It is a partial duplicate of #1581 Short answer is that these warnings are not a problem for your data dump. |
I have the same problem.
command:
the backup is probably not correct.
|
What happens if you try to pg_restore the dump? Just don't forget about the additional procedures described in https://docs.timescale.com/latest/using-timescaledb/backup |
@victor-sudakov can you please try with our latest TimescaleDB 2.4.2 (PG 12 or PG13) and get back to us? |
Will be able to do that after the weekend. |
That's great! What were your results? |
Hi @victor-sudakov ! 👋 If you can reproduce this on the latest TimescaleDB version, please feel free to reopen the issue. |
I'm currently on timescaledb-2-postgresql-12/buster,now 2.5.0~debian10 amd64. The warnings are still there. Maybe I'm doing something wrong?
|
@victor-sudakov The warnings are expected and does not affect your backup. The main reason they are there is because the Have you checked if |
@victor-sudakov It seems to work as expected. If you can check 'pg_restore' that would be great. Feel free to reopen the issue. |
I switched to wal-g for TimescaleDB backup, but I'll make a lab this week and report. I clearly remember there being special recommendations/steps for logical backup and restore of a TimescaleDB database, but now cannot find them anymore. It was in the link I gave above. You cannot just run |
hello, any update on this? what is the recommended way to do backups for timescaledb please? |
@ravz you can execute |
Relevant system information:
Describe the bug
There are unsightly warnings from pg_dump while doing the pg_dump of a Timescaledb-enabled database:
To Reproduce
pg_dump -Fc -U postgres -f zabbix.dump -d zabbix
Expected Bbehavior
It is not clear whether these warnings mean that:
Additional Considerations
I've read https://docs.timescale.com/latest/using-timescaledb/backup, it says that restoring data from a backup currently requires some additional procedures. It would be fine if the warnings mentioned those special procedures. But in their current state, the warnings are useless (?) and alarming. The message about circular foreign-key constraints is especially alarming. The phrase Data for hypertables are stored in the chunks of a hypertable so COPY TO of a hypertable will not copy any data also (falsely?) hints that the dump may be inconsistent.
The text was updated successfully, but these errors were encountered: