Skip to content

Commit

Permalink
[docs] source-postgres - add link explaining modest increase cost of …
Browse files Browse the repository at this point in the history
…`REPLICA IDENTITY FULL` (#40611)

Co-authored-by: Yue Li <61070669+theyueli@users.noreply.github.com>
  • Loading branch information
evantahler and theyueli committed Jun 28, 2024
1 parent 1d744f0 commit 7687800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/integrations/sources/postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ ALTER TABLE tbl1 REPLICA IDENTITY DEFAULT;
```

In rare cases, if your tables use data types that support [TOAST](https://www.postgresql.org/docs/current/storage-toast.html) or have very large field values, consider instead using replica identity type full: `
ALTER TABLE tbl1 REPLICA IDENTITY FULL;`.
ALTER TABLE tbl1 REPLICA IDENTITY FULL;`. Ensure that TOAST-able tables use non-TOAST-able primary keys (integers, varchars, etc), and there will only be a [modest increase in resource utilization, in addition to increased WAL storage size](https://xata.io/blog/replica-identity-full-performance).

2. Create the Postgres publication. You should include all tables you want to replicate as part of the publication:

Expand Down

0 comments on commit 7687800

Please sign in to comment.