Skip to content

Commit d5a1b66

Browse files
committed
update docs
1 parent 4ac4eb4 commit d5a1b66

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,18 @@ Publications
265265
>
266266
> A published table must have a “replica identity” configured in order to be able to replicate `UPDATE` and `DELETE` operations, so that appropriate rows to update or delete can be identified on the subscriber side. By default, this is the primary key, if there is one. Another unique index (with certain additional requirements) can also be set to be the replica identity.
267267
268+
```sql
269+
-- using default replica identity (primary key)
270+
ALTER TABLE pgbench_branches
271+
REPLICA IDENTITY DEFAULT;
272+
273+
-- using the given index
274+
ALTER TABLE pgbench_branches
275+
REPLICA IDENTITY USING INDEX pgbench_branches_pkey;
276+
277+
-- don’t use `FULL` as it means a lot of data in the WAL
278+
```
279+
268280
Subscriptions
269281

270282
> Each subscription will receive changes via one replication slot. Additional replication slots may be required for the initial data synchronization of pre-existing table data and those will be dropped at the end of data synchronization.
@@ -393,6 +405,12 @@ The final `make validate` shows that the data is still consistent afterwards.
393405

394406
## Error Scenarios
395407

408+
### Violation of constraints
409+
410+
_tbw._
411+
412+
### Target goes down during replication
413+
396414
_tbw._
397415

398416
## Resources

0 commit comments

Comments
 (0)