Skip to content

Commit

Permalink
Postgres Source : updated docs for CDC setup (#18291)
Browse files Browse the repository at this point in the history
* Postgres Source updated docs for CDC setup

* fixed typo

* fixed typo

* rephrased

* rephrased
  • Loading branch information
VitaliiMaltsev authored and nataly committed Nov 3, 2022
1 parent b8ec447 commit 1245fe2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/integrations/sources/postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand Down

0 comments on commit 1245fe2

Please sign in to comment.