diff --git a/_troubleshooting/timescaledb/pg_restore-errors.md b/_troubleshooting/timescaledb/pg_restore-errors.md new file mode 100644 index 0000000000..a657a4567c --- /dev/null +++ b/_troubleshooting/timescaledb/pg_restore-errors.md @@ -0,0 +1,22 @@ +--- +title: Errors occur after restoring from file dump +section: troubleshooting +topics: [backups] +errors: + - language: bash + message: |- + org.postgresql.util.PSQLException: ERROR: invalid INSERT on the root table of hypertable "_hyper_1_10_chunk. +keywords: [backups, restore] +--- + + + You might see the errors above when running `pg_restore`. When loading from a + logical dump make sure that you set `timescaledb.restoring` to true before loading + the dump. diff --git a/timescaledb/how-to-guides/backup-and-restore/pg-dump-and-restore.md b/timescaledb/how-to-guides/backup-and-restore/pg-dump-and-restore.md index 8ed55cb151..b6fb30b056 100644 --- a/timescaledb/how-to-guides/backup-and-restore/pg-dump-and-restore.md +++ b/timescaledb/how-to-guides/backup-and-restore/pg-dump-and-restore.md @@ -162,6 +162,13 @@ partitions, or the chunk interval sizes. +On a self hosted TimescaleDB instance with `postgres` superuser access you can +take a complete dump of all PostgreSQL databases in a cluster including global +objects that are common to all databases, namely database roles, tablespaces, +and privilege grants using `pg_dumpall`. For more +information about how to use the `pg_dumpall` utility, see +[PostgreSQL documentation][postgres-docs]. + [parallel importer]: https://github.com/timescale/timescaledb-parallel-copy [pg_dump]: https://www.postgresql.org/docs/current/static/app-pgdump.html [pg_restore]: https://www.postgresql.org/docs/current/static/app-pgrestore.html @@ -169,3 +176,4 @@ partitions, or the chunk interval sizes. [timescaledb_post_restore]: /api/:currentVersion:/administration/timescaledb_post_restore/ [timescaledb-upgrade]: /timescaledb/:currentVersion:/how-to-guides/upgrades/ [troubleshooting]: /timescaledb/:currentVersion:/how-to-guides/backup-and-restore/troubleshooting/ +[postgres-docs]: https://www.postgresql.org/docs/current/app-pg-dumpall.html