gpt4 book ai didi

postgresql - Realm 数据连接器与 Heroku Postgres : must be superuser or replication role to use replication slots

转载 作者:行者123 更新时间:2023-11-29 12:16:47 26 4
gpt4 key购买 nike

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

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

PGRES_FATAL_ERROR:错误:必须是 super 用户或复制角色才能使用复制槽

是否有人已经获得了可与 Heroku PG 数据库一起使用的 Realm Postgres 连接器?或者可以想出解决方法?

感谢您的帮助!

卢卡斯

最佳答案

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

Unfortunately, we do not allow creation of new replication slots by customers, as replication users are very privileged in Postgres, almost to the superuser level.

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

关于postgresql - Realm 数据连接器与 Heroku Postgres : must be superuser or replication role to use replication slots,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49677907/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com