Enable or disable data sharing
Enable data sharing for an AnalyticDB for PostgreSQL instance in serverless mode for cross-instance queries. This feature provides real-time data access and reduces data redundancy.
Limitations
-
All instances must be in serverless mode.
-
All instances must belong to the same Alibaba Cloud account.
-
All instances must be in the same region.
-
Only table-level data sharing is supported.
Enable data sharing
- Log on to the AnalyticDB for PostgreSQL console.
- In the upper-left corner of the console, select a region.
-
In the navigation pane on the left, click Data Sharing.
-
On the Instances for Data Sharing page, select the instances to add, and then click Add.
-
In the Add Instances for Data Sharing dialog box, click OK.
NoteEnabling data sharing takes about 5 to 10 minutes. After the process is complete, you can access shared data across instances.
Disable data sharing
After data sharing is disabled, other instances cannot access the shared data.
- Log on to the AnalyticDB for PostgreSQL console.
- In the upper-left corner of the console, select a region.
-
In the navigation pane on the left, click Data Sharing.
-
On the Instances for Data Sharing page, select the instance to disable, and then click Disable.
-
In the Disable Data Sharing dialog box, click OK.
Next steps
After you add an instance to data sharing, you also need to configure data sharing using SQL. For details, see Data Sharing SQL.
API reference
|
API |
Description |
|
Call the SetDataShareInstance operation to add or remove an AnalyticDB for PostgreSQL instance from data sharing. |
|
|
Call the DescribeDataShareInstances operation to query the status of data sharing. |
|
|
Call the DescribeDataSharePerformance operation to query the performance metrics of data sharing. |
Related documentation
For instances in elastic storage mode, you can use the greenplum_fdw and gp_parallel_retrieve_cursor extensions to perform a cross-instance query. For more information, see Cross-instance query.