设置手动复制
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.
本指南适用于使用你自己的工具将数据复制到目标系统。如果要在多个地区部署只读数据库,请参阅只读副本 。
🌐 This guide is for replicating data to destination systems using your own tools. For deploying read-only databases across multiple regions, see read replicas instead.
先决条件 #
🌐 Prerequisites
要设置复制,建议如下:
🌐 To set up replication, the following is recommended:
- 实例大小为 XL 或更大
- IPv4 插件 已启用
要创建一个复制槽,你需要使用 postgres 用户,并按照逻辑复制示例中的说明操作。
🌐 To create a replication slot, you will need to use the postgres user and follow the instructions in the logical replication example.
如果你运行的是 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.
如果你正在将数据复制到目标系统,并使用下面的任何工具,先查看它们的文档。由于使用 Supabase 的设置可能有所不同,这里也提供了一些额外信息。
🌐 If you are replicating to a destination system and using any of the tools below, check their documentation first. Additional information is provided where the setup with Supabase can vary.
Estuary 有以下 文档 用于将 Postgres 设置为数据源。