-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
why can not connet with pgAdmin4? #13058
Comments
Hi @penghuazhou |
Hi @penghuazhou , since psql works, according to |
@penghuazhou |
@taojintianxia Hi It looks like night building can help users test conveniently. |
@RaigorJiang |
Have you try the latest version? |
@tristaZero @RaigorJiang version: shardingsphere-proxy 4.1.1, postpresql(database):14.0 [INFO ] 09:36:13.648 [nioEventLoopGroup-2-1] i.n.handler.logging.LoggingHandler - [id: 0xac2c2499, L:/0:0:0:0:0:0:0:0:3307] READ COMPLETE |
Hi @penghuazhou In addition, compared to version 4.x, 5.0 has more support for SQL statements, which is why I ask you if you can try the new version. |
@RaigorJiang , I use master code, It have a error message "'ServerManager' object has no attribute 'user_info'" |
@penghuazhou
And the key words of log: |
+--------+-------------------------------------------------+----------------+ |
It seems that the connection has been successful, but the database and table information is incorrect, because the way Postgre obtains information is different from that of MySQL, and this part needs to be improved. |
But you can execute your own business SQL without worrying about whether the metadata is displayed correctly. |
but I can not use pgadmin4,do you have a gui tools to connect to shardsphere-proxy? |
|
do you know why return "'pg_catalog' doesn't exist"? It exists in database |00000000| 45 00 00 00 3e 53 45 52 52 4f 52 00 56 45 52 52 |E...>SERROR.VERR| |
Because when you are using ShardingSphere-Proxy, the However, access to metadata is very important to some SQL clients, so this part still needs support, and we are already sorting out related plans. |
@RaigorJiang DataGrip:2021.1 can execute sql, but can not show databases message |
Yes, because the way postgre queries schema and table metadata is different from MySQL, this is a known issue, and we will fix it later. |
thanks |
@RaigorJiang This will be our next improvement for the next release? Do we have any plans? |
Yes, plans will be sorted out this week, so stay tuned~ |
version: shardingsphere-pxoxy 4.1.1
thow errors when use DBeaver or pgAdmin to connect, but it well to use pgsql.
[WARN ] 12:43:32.243 [ShardingSphere-5] c.zaxxer.hikari.pool.ProxyConnection - HikariPool-2 - Connection org.postgresql.jdbc.PgConnection@4bffc
0e marked as broken because of SQLSTATE(08006), ErrorCode(0)
org.postgresql.util.PSQLException: The server's client_encoding parameter was changed to UNICODE. The JDBC driver requires client_encoding to b
e UTF8 for correct operation.
at org.postgresql.core.v3.QueryExecutorImpl.receiveParameterStatus(QueryExecutorImpl.java:2604)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2219)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)
at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:1168)
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:103)
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.executeSQL(StatementExecutorWrap
per.java:130)
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.execute.callback.ProxySQLExecuteCallback.executeSQL(ProxySQLExecu
teCallback.java:82)
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.execute.callback.ProxySQLExecuteCallback.executeSQL(ProxySQLExecu
teCallback.java:77)
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.execute.callback.ProxySQLExecuteCallback.executeSQL(ProxySQLExecu
teCallback.java:46)
at org.apache.shardingsphere.sharding.execute.sql.execute.SQLExecuteCallback.execute0(SQLExecuteCallback.java:82)
at org.apache.shardingsphere.sharding.execute.sql.execute.SQLExecuteCallback.execute(SQLExecuteCallback.java:58)
at org.apache.shardingsphere.underlying.executor.engine.ExecutorEngine.lambda$asyncExecute$0(ExecutorEngine.java:110)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
The text was updated successfully, but these errors were encountered: