Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't recommend for all tables publications #189

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions connect/postgres/azure_flexible_server_postgres.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ Connect to your Azure Flexible Server Postgrees through the admin user and run t
ALTER ROLE peerdb_user REPLICATION;
```

4. Create publication that you'll be using for creating the MIRROR (replication) in future.
4. Create a publication that you'll be using for creating the MIRROR (replication) in future.

1. ```sql
CREATE PUBLICATION peerdb_publication FOR ALL TABLES;
CREATE PUBLICATION peerdb_publication FOR TABLE table1, table2, table3....;
```

5. Set `wal_sender_timeout` to 0 for `peerdb_user`
Expand Down
4 changes: 2 additions & 2 deletions connect/postgres/cloudsql_postgres.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ Connect to your CloudSQL Postgres through the admin user and run the below comma
ALTER ROLE peerdb_user REPLICATION;
```

4. Create publication that you'll be using for creating the MIRROR (replication) in future.
4. Create a publication that you'll be using for creating the MIRROR (replication) in future.

1. ```sql
CREATE PUBLICATION peerdb_publication FOR ALL TABLES;
CREATE PUBLICATION peerdb_publication FOR TABLE table1, table2, table3....;
```

<SSHTunnel />
Expand Down
4 changes: 2 additions & 2 deletions connect/postgres/crunchy_bridge.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ Connect to your Crunchy Bridge Postgres through the `postgres` user and run the
ALTER ROLE peerdb_user REPLICATION;
```

4. Create publication that you'll be using for creating the MIRROR (replication) in future.
4. Create a publication that you'll be using for creating the MIRROR (replication) in future.

1. ```sql
CREATE PUBLICATION peerdb_publication FOR ALL TABLES;
CREATE PUBLICATION peerdb_publication FOR TABLE table1, table2, table3....;
```

<SSHTunnel />
Expand Down
5 changes: 3 additions & 2 deletions connect/postgres/neon_postgres.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ Here, we can run the following SQL commands:
-- Give replication permission to the USER
ALTER USER peerdb_user REPLICATION;

-- Create a publication. We will use this when creating the mirror
CREATE PUBLICATION peerdb_publication FOR ALL TABLES;
-- Create a publication with the tables you wish to replicate. We will use this when creating the mirror
CREATE PUBLICATION peerdb_publication FOR TABLE table1, table2, table3....;

```

<Frame caption="User and publication commands">
Expand Down
5 changes: 3 additions & 2 deletions connect/postgres/rds_postgres.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ Connect to your RDS postgres through the admin user and run the below commands:
GRANT rds_replication TO peerdb_user ;
```

4. Create publication that you'll be using for creating the MIRROR (replication) in future.
4. Create a publication that you'll be using for creating the MIRROR (replication) in future.
It's recommended to create a publication for only the tables that you want to replicate, like below:

1. ```sql
CREATE PUBLICATION peerdb_publication FOR ALL TABLES;
CREATE PUBLICATION peerdb_publication FOR TABLE table1, table2, table3....;
```

<SSHTunnel />
Expand Down
5 changes: 3 additions & 2 deletions connect/postgres/supabase_postgres.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ Here, we can run the following SQL commands:
-- Give replication permission to the USER
ALTER USER peerdb_user REPLICATION;

-- Create a publication. We will use this when creating the mirror
CREATE PUBLICATION peerdb_publication FOR ALL TABLES;
-- Create a publication with the tables you wish to replicate. We will use this when creating the mirror
CREATE PUBLICATION peerdb_publication FOR TABLE table1, table2, table3....;

```

<Frame caption="User and publication commands">
Expand Down
5 changes: 3 additions & 2 deletions connect/postgres/supabase_postgres_peerdb_cloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ Here, we can run the following SQL commands:
-- Give replication permission to the USER
ALTER USER peerdb_user REPLICATION;

-- Create a publication. We will use this when creating the mirror
CREATE PUBLICATION peerdb_publication FOR ALL TABLES;
-- Create a publication with the tables you wish to replicate. We will use this when creating the mirror
CREATE PUBLICATION peerdb_publication FOR TABLE table1, table2, table3....;

```

<Frame caption="User and publication commands">
Expand Down