I'm trying to get a backup of my database using https://devcenter.heroku.com/articles/heroku-postgres-backups
But when I run this command heroku pg:backups:capture --app [app_name], I get the following error:
▸ An error occurred and the backup did not finish.
▸
▸ waiting for upload to complete
▸ pg_dump: error: query was: LOCK TABLE "topology"."topology" IN ACCESS SHARE MODE
▸ upload finished successfully
▸ waiting for pg_dump to complete
▸ pg_dump finished with errors
When I look at the logs, I get the following:
=== Backup Logs
2020-07-15 20:39:51 +0000 pg_dump: last built-in OID is 16383
2020-07-15 20:39:51 +0000 pg_dump: reading extensions
2020-07-15 20:39:51 +0000 pg_dump: identifying extension members
2020-07-15 20:39:51 +0000 pg_dump: reading schemas
2020-07-15 20:39:51 +0000 pg_dump: reading user-defined tables
2020-07-15 20:39:51 +0000 pg_dump: error: query failed: ERROR: permission denied for schema topology
2020-07-15 20:39:51 +0000 waiting for upload to complete
2020-07-15 20:39:51 +0000 pg_dump: error: query was: LOCK TABLE "topology"."topology" IN ACCESS SHARE MODE
2020-07-15 20:39:52 +0000 upload finished successfully
2020-07-15 20:39:52 +0000 waiting for pg_dump to complete
2020-07-15 20:39:52 +0000 pg_dump finished with errors
I don't have a table called "topology", which is why I'm confused why I'm having this error. I really would like to get backups using Heroku rather than pg_dump, because then I can simply plug the backup's Database URL into a new Hasura GraphQL engine instance.
Does anyone know why I might be getting this error>