Skip to content

Commit a9b2d1c

Browse files
author
katmayb
committed
Updates
1 parent 7260e2d commit a9b2d1c

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/current/v25.2/create-logical-replication-stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ A ➔ B | B | User running the command. | `REPLICATIONDEST`
3333
B ➔ A | B | User in the LDR connection string. | `REPLICATIONSOURCE`
3434
B ➔ A | A | User running the command. | `REPLICATIONDEST`
3535

36-
Grant a table-level privilege with the [`GRANT`]({% link {{ page.version.version }}/grant.md %}) statement to a [user or a role]({% link {{ page.version.version }}/security-reference/authorization.md %}#users-and-roles):
36+
Grant the privilege at the table or [system level]({% link {{ page.version.version }}/grant.md %}#grant-system-level-privileges-on-the-entire-cluster) with the [`GRANT`]({% link {{ page.version.version }}/grant.md %}) statement to a [user or a role]({% link {{ page.version.version }}/security-reference/authorization.md %}#users-and-roles):
3737

3838
{% include_cached copy-clipboard.html %}
3939
~~~ sql

src/current/v25.2/create-logically-replicated.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,22 @@ Replication direction | Cluster | User role | Required privileges
3434
----------------------+---------+-----------+-------------------
3535
A ➔ B | A | User in source connection string. | `REPLICATIONSOURCE` on A's tables.
3636
A ➔ B | B | User running `CREATE LOGICALLY REPLICATED` from the destination cluster. The destination table will be created and the user given the `REPLICATIONDEST` privilege on the new table automatically.<br>**Note:** Must match the user in the destination connection string for bidirectional LDR. | `CREATE` on B's parent database.
37-
B ➔ A (reverse stream) | B | User in the new source connection string. | `REPLICATIONSOURCE` on B's tables.
3837
Reverse replication requirement | A | Original source connection string user. | `REPLICATIONDEST` on A's tables.
3938

40-
Grant a table-level privilege with the [`GRANT`]({% link {{ page.version.version }}/grant.md %}) statement to a [user or a role]({% link {{ page.version.version }}/security-reference/authorization.md %}#users-and-roles):
39+
For example, the user `maxroach` will run the following statement to start LDR on the destination cluster:
40+
41+
{% include_cached copy-clipboard.html %}
42+
~~~ sql
43+
CREATE LOGICALLY REPLICATED TABLE B.table FROM TABLE A.table ON 'A_connection_string/user=samroach' WITH BIDIRECTIONAL ON 'B_connection_string/user=maxroach;
44+
~~~
45+
46+
To start LDR successfully with this statement:
47+
48+
- `maxroach` requires `CREATE` on database B, implicitly gets `REPLICATIONDEST` and `REPLICATIONSOURCE` on `B.table`.
49+
- `samroach` requires `REPLICATIONSOURCE` and `REPLICATIONDEST` on `A.table`.
50+
- `maxroach` must be the user in the `BIDIRECTIONAL ON` connection string.
51+
52+
Grant the privilege at the table or [system level]({% link {{ page.version.version }}/grant.md %}#grant-system-level-privileges-on-the-entire-cluster) with the [`GRANT`]({% link {{ page.version.version }}/grant.md %}) statement to a [user or a role]({% link {{ page.version.version }}/security-reference/authorization.md %}#users-and-roles):
4153
4254
{% include_cached copy-clipboard.html %}
4355
~~~ sql

0 commit comments

Comments
 (0)