Skip to content

Commit 5d7b759

Browse files
committed
update schema docs
1 parent 93cb4b4 commit 5d7b759

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

docs/features/sharding/resharding/databases.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,16 @@ PgDog's strategy for resharding Postgres databases is to create a new, independe
88

99
## Requirements
1010

11-
New databases should be **empty**: don't migrate your [table definitions](schema.md) or [data](hash.md). These will be taken care of automatically by PgDog. The following items do need to be created manually, however:
12-
13-
1. Database users
14-
2. Database schemas
11+
New databases should be **empty**: don't migrate your [table definitions](schema.md) or [data](hash.md). These will be taken care of automatically by PgDog.
1512

1613
### Database users
1714

18-
Since PgDog was built to work in cloud-managed environments, like AWS RDS, we don't usually have access to the `pg_shadow` view, which contains password hashes. Therefore, tools like [`pg_dumpall`](https://www.postgresql.org/docs/current/app-pg-dumpall.html) aren't able to operate and we can't automatically migrate users to the new database.
15+
Since PgDog was built to work in cloud-managed environments, like AWS RDS, we don't usually have access to the `pg_shadow` view, which contains password hashes. Therefore, tools like [`pg_dumpall`](https://www.postgresql.org/docs/current/app-pg-dumpall.html) aren't able to operate correctly, and we can't automatically migrate users to the new database.
1916

2017
For this reason, migrating users to the new database cluster is currently **not supported** and is the responsibility of the operator.
2118

2219
Make sure to create all the necessary Postgres users and roles before proceeding to the [next step](schema.md).
2320

24-
### Database schemas
25-
26-
!!! note ":material-account-hard-hat: Work in progress"
27-
This step will be automated by a future version of PgDog.
28-
29-
Before running the [schema sync](schema.md), make sure to re-create all of your existing schemas on the new databases. You can take advantage of [cross-shard DDL](../cross-shard.md#create-alter-drop) queries to make this easier.
30-
31-
The `public` schema is created by default for all databases, so if you aren't using any additional schemas, you can skip this step.
32-
3321
## Multiple Postgres databases
3422

3523
If you are operating multiple Postgres databases on the same database server, they will need to be resharded separately. Logical replication, which PgDog uses to move data, operates on a single Postgres database level only.

0 commit comments

Comments
 (0)