You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,9 @@ Full list of options in `config.json`:
66
66
| tap_id | String | No | ID of the pipeline/tap (Default: None) |
67
67
| itersize | Integer | No | Size of PG cursor iterator when doing INCREMENTAL or FULL_TABLE (Default: 20000) |
68
68
| default_replication_method | String | No | Default replication method to use when no one is provided in the catalog (Values: `LOG_BASED`, `INCREMENTAL` or `FULL_TABLE`) (Default: None) |
69
+
| use_secondary | Boolean | No | Use a database replica for `INCREMENTAL` and `FULL_TABLE` replication (Default : False) |
70
+
| secondary_host | String | No | PostgreSQL Replica host (required if `use_secondary` is `True`) |
71
+
| secondary_port | Integer | No | PostgreSQL Replica port (required if `use_secondary` is `True`) |
69
72
70
73
71
74
### Run the tap in Discovery Mode
@@ -142,7 +145,7 @@ to the tap for the next sync.
142
145
```
143
146
144
147
Restart your PostgreSQL service to ensure the changes take effect.
145
-
148
+
146
149
**Note**: For `max_replication_slots` and `max_wal_senders`, we’re defaulting to a value of 5.
147
150
This should be sufficient unless you have a large number of read replicas connected to the master instance.
148
151
@@ -151,11 +154,11 @@ to the tap for the next sync.
151
154
In PostgreSQL, a logical replication slot represents a stream of database changes that can then be replayed to a
152
155
client in the order they were made on the original server. Each slot streams a sequence of changes from a single
153
156
database.
154
-
157
+
155
158
Login to the master instance as a superuser and using the `wal2json` plugin, create a logical replication slot:
156
159
```
157
160
SELECT *
158
-
FROM pg_create_logical_replication_slot('pipelinewise_<database_name>', 'wal2json');
161
+
FROM pg_create_logical_replication_slot('pipelinewise_<database_name>', 'wal2json');
159
162
```
160
163
161
164
**Note**: Replication slots are specific to a given database in a cluster. If you want to connect multiple
0 commit comments