From ea1186c1dff94b7cf6c8063a8f9626668d981667 Mon Sep 17 00:00:00 2001 From: VitaliiMaltsev <39538064+VitaliiMaltsev@users.noreply.github.com> Date: Wed, 26 Oct 2022 11:18:20 +0300 Subject: [PATCH] Postgres Source : updated docs for CDC setup (#18291) * Postgres Source updated docs for CDC setup * fixed typo * fixed typo * rephrased * rephrased --- docs/integrations/sources/postgres.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/integrations/sources/postgres.md b/docs/integrations/sources/postgres.md index a0fb80c91a52c..40771e5f74bff 100644 --- a/docs/integrations/sources/postgres.md +++ b/docs/integrations/sources/postgres.md @@ -232,12 +232,14 @@ SELECT pg_create_logical_replication_slot('airbyte_slot', 'wal2json'); For each table you want to replicate with CDC, add the replication identity (the method of distinguishing between rows) first: -To use primary keys to distinguish between rows, run: - +To use primary keys to distinguish between rows for tables that don't have a large amount of data per row, run: ``` ALTER TABLE tbl1 REPLICA IDENTITY DEFAULT; ``` - +In case your tables use data types that support [TOAST](https://www.postgresql.org/docs/current/storage-toast.html) and have very large field values, use: +``` +ALTER TABLE tbl1 REPLICA IDENTITY FULL; +``` After setting the replication identity, run: ```