设置手动复制
Set up replication with Airbyte, Estuary, Fivetran, and other tools.
本指南讲解如何使用你自己的工具设置手动逻辑复制。如果你更喜欢托管解决方案,请改为阅读设置管道。
🌐 This guide covers setting up manual logical replication using your own tools. If you prefer a managed solution, read Set up Pipelines instead.
要在多个区域部署只读数据库,请参见 只读副本。
🌐 For deploying read-only databases across multiple regions, see read replicas.
先决条件 #
🌐 Prerequisites
要设置复制,建议如下:
🌐 To set up replication, the following is recommended:
- 实例大小为 XL 或更大
- IPv4 插件 已启用
如果你运行的是 Postgres 17 或更高版本,你可以使用 postgres 用户创建一个新用户并赋予他们复制权限。对于 17 以下的版本,你需要使用 postgres 用户。
🌐 If you are running Postgres 17 or higher, you can create a new user and grant them replication permissions with the postgres user. For versions below 17, you will need to use the postgres user.
选择你的复制工具 #
🌐 Choose your replication tool
按照你的工具的设置指南操作,并参考下面的 Supabase 相关说明。如果你正在创建自己的消费者,请按照逻辑复制示例创建一个发布和复制槽。
🌐 Follow your tool's setup guide, using the Supabase-specific notes below. If you are building your own consumer, follow the logical replication example to create a publication and replication slot.
按照 Estuary Supabase 源指南 操作。
监控复制 #
🌐 Monitor replication
在启动你的消费者后,监控复制槽、WAL 保留和进度。
🌐 After starting your consumer, monitor replication slots, WAL retention, and progress.