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
Copy file name to clipboardExpand all lines: docs/features/sharding/resharding/hash.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,21 +20,20 @@ PgDog has a command line interface you can call by running it directly:
20
20
```bash
21
21
pgdog data-sync \
22
22
--from-database <name> \
23
-
--from-user <name> \
24
23
--to-database <name> \
25
-
--to-user <name> \
26
-
--publication <publication>
24
+
--publication <publication> \
27
25
```
28
26
29
27
Required (*) and optional parameters for this command are as follows:
30
28
31
29
| Option | Description |
32
30
|-|-|
33
31
|`--from-database`*| Name of the source database cluster. |
34
-
|`--from-user`*| Name of the user configured in `users.toml` for the source database cluster. |
35
32
|`--to-database`*| Name of the destination database cluster. |
36
-
|`--to-user`*| Name of the user configured in `users.toml` for the destination database cluster. |
37
33
|`--publication`*| Name of the Postgres [publication](schema.md#publication) for tables to be copied and sharded. It should exist on the **source** database. |
34
+
|`--replication-slot`| Name of the replication slot to use (and create if it doesn't exist) for syncing real-time changes. |
35
+
|`--replicate-only`| Don't copy data, just stream changes from the replication slot. |
36
+
|`--sync-only`| Perform the initial data sync only and exit. |
0 commit comments