Skip to content

Commit 9ea9c9d

Browse files
fix(rdb): review hugo 2
Co-authored-by: Hugo DUBOIS <[email protected]>
1 parent e22feac commit 9ea9c9d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pages/managed-databases-for-postgresql-and-mysql/api-cli/logical-replication-as-subscriber.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ To be able to create a subscription, you must have the privileges of the `pg_cre
6565
GRANT pg_read_all_stats TO my_replication_user;
6666
SELECT * FROM pg_stat_subscription;
6767
```
68-
5. Run the first command to grant the user read access to all data. Run the second to get a table containing data about all subscriptions defined in the database. This data includes the subscription ID, name, owner, whether the subscription is enabled or not, and connection information.
68+
5. Run the command below to get a table containing data about all subscriptions defined in the database. This data includes the subscription ID, name, owner, and whether the subscription is enabled or not.
6969
```sql
70-
GRANT pg_read_all_data TO myuser;
71-
SELECT * FROM pg_subscription;
70+
SELECT subname, subenabled, subenabled, subslotname, subpublications FROM pg_catalog.pg_subscription;
7271
```
7372
<Message type="tip">
7473
Refer to the official [PostgreSQL documentation](https://www.postgresql.org/docs/current/catalog-pg-subscription.html) for more information on the `pg_subscription` catalog.

0 commit comments

Comments
 (0)