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: src/current/v25.2/create-logical-replication-stream.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ A ➔ B | B | User running the command. | `REPLICATIONDEST`
33
33
B ➔ A | B | User in the LDR connection string. | `REPLICATIONSOURCE`
34
34
B ➔ A | A | User running the command. | `REPLICATIONDEST`
35
35
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):
A ➔ B | A | User in source connection string. | `REPLICATIONSOURCE` on A's tables.
36
36
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.
38
37
Reverse replication requirement | A | Original source connection string user. | `REPLICATIONDEST` on A's tables.
39
38
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.tableFROM TABLE A.tableON'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):
0 commit comments