-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Consider supporting PostgreSQL/openGauss schema statements #14004
Closed
5 tasks done
Comments
👍 I would enhance EncryptPropertiesBuilder if this supported. |
Related issue: #13638 |
strongduanmu
changed the title
Consider supporting postgresql schema
Consider supporting PostgreSQL and openGauss schema statements
Apr 13, 2022
strongduanmu
changed the title
Consider supporting PostgreSQL and openGauss schema statements
Consider supporting PostgreSQL/openGauss schema statements
Apr 13, 2022
This was referenced Apr 13, 2022
This was referenced Apr 17, 2022
This was referenced Apr 24, 2022
Since this task is too big, I will split the implementation of search_path into other issues. This issue is responsible for supporting SQL execution with the schema modifier. |
This was referenced Apr 30, 2022
Merged
This was referenced May 31, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
In the SharedingSphere community, we have heard a lot of exception feedback about PostgreSQL/openGauss schema, such as #15579, #15145, #14004 and #13638. In order to improve experience of PostgreSQL/openGauss users, we need to support PostgreSQL/openGauss schema now.
How to support PostgreSQL/openGauss schema
Currently in the
config-xxx.xml
file, the actual meaning of schemaName is database, so we decided to adjust theschemaName
configuration todatabaseName
.In order to be compatible with the original
schemaName
configuration, users can still configureschemaName: sharding_db
in the yaml file, which has the same effect as configuringdatabaseName: sharding_db
.Users can specify the
search_path
of PostgreSQL/openGauss by configuringcurrentSchema=schema_0959,public
. When the user executes the SQL without the schema qualified name, the search will be performed according to thesearch_path
.When users execute
CREATE SCHEMA
orDROP SCHEMA
statements, we will route these SQL statements to all PostgreSQL/openGauss databases for execution, and add schema information to the metadata of ShardingSphere.In addition, we also need to support the
SET SEARCH_PATH
statement on the ShardingSphere-Proxy adaptor to allow users to switch search_path.Tasks
The text was updated successfully, but these errors were encountered: