【发布时间】: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 数据库上无法设置 superuser 或 replication 角色,因此导致以下 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