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/schema.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,13 +46,14 @@ Before starting the resharding process for your database, double-check that you
46
46
47
47
Since PgDog is using logical replication to move and reshard data, a [publication](https://www.postgresql.org/docs/current/sql-createpublication.html) for the relevant tables needs to be created on the source database.
48
48
49
-
The simplest way to do this is to run the following command on the **source database**:
49
+
The simplest way to do this is to run the following command:
50
50
51
-
```postgresql
52
-
CREATE PUBLICATION pgdog FOR ALL TABLES;
53
-
```
51
+
=== "Source database"
52
+
```postgresql
53
+
CREATE PUBLICATION pgdog FOR ALL TABLES;
54
+
```
54
55
55
-
This will make sure _all_ tables in your database will be resharded into the destination database cluster.
56
+
This will make sure _all_ tables in your database will be copied and resharded into the destination database cluster.
56
57
57
58
!!! note "Multiple schemas"
58
59
If you're using schemas other than `public`, create them on the destination database before running the schema sync.
0 commit comments