【问题标题】:Realm Data Connector with Heroku Postgres: must be superuser or replication role to use replication slots带有 Heroku Postgres 的领域数据连接器:必须是超级用户或复制角色才能使用复制槽
【发布时间】:2018-04-09 15:14:21
【问题描述】:

我正在关注 Realm Postgres 连接器 参考,以将我们的 Realm 数据库与我们的 Heroku PostgreSQL 数据库同步:https://docs.realm.io/platform/using-synced-realms/server-side-usage/data-integration/postgres-connector#realm-data-adapter

它在本地运行良好,因为我可以使用superuser 角色连接到 PG 本地数据库以使用复制槽。但是,在 Heroku PostgreSQL 数据库上无法设置 superuserreplication 角色,因此导致以下 PG 错误:

PGRES_FATAL_ERROR: ERROR: must be superuser or replication role to use replication slots

是否有人已经让 Realm Postgres 连接器与 Heroku PG 数据库一起工作?或者可以想到一个解决方法?

感谢您的帮助!

卢卡斯

【问题讨论】:

  • 你试过这个吗:github.com/hasura/realm-pg-sync。它与 Hasura 上的 Postgres 一起使用,由一位同事制作。
  • 嘿,谢谢你的资源!我发现了相同的,它看起来很有希望。不过,我们已经迁移到 Amazon RDS,暂时不考虑再次迁移...

标签: postgresql heroku realm heroku-postgres


【解决方案1】:

Heroku 支持确认目前无法使用replication 角色:

不幸的是,我们不允许客户创建新的复制槽,因为复制用户在 Postgres 中具有很高的特权,几乎达到了超级用户级别。

因此我决定迁移到 Amazon RDS。这是一篇关于如何执行此类迁移的精彩文章:https://www.lewagon.com/fr/blog/how-to-migrate-your-heroku-postgres-database-to-amazon-rds

【讨论】:

  • 很好的指南,但它不适用于大型生产数据库。
猜你喜欢
  • 2014-04-22
  • 2017-11-26
  • 2012-08-04
  • 2015-03-30
  • 2019-03-12
  • 1970-01-01
  • 2017-12-01
  • 2020-09-22
相关资源
最近更新 更多