duerwuyi opened a new issue, #36833:
URL: https://github.com/apache/shardingsphere/issues/36833

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   shardingsphere-proxy 5.5.2
   postgres 17.2 as backend
   
   ### Expected behavior
   
   `\l` returns list of all databases.
   
   ### Actual behavior
   
   ```sql
   root@docker-desktop:~/DDC# psql -h host.docker.internal -p 5440 -U postgres  
        
   Password for user postgres: 
   psql (17.6 (Ubuntu 17.6-1.pgdg22.04+1), server 12.3-ShardingSphere-Proxy 
5.5.2)
   Type "help" for help.
   
   postgres=> \l
                                                       List of databases
      Name    |  Owner   | Encoding | Locale Provider |  Collate   |   Ctype    
| Locale | ICU Rules |   Access privileges   
   
-----------+----------+----------+-----------------+------------+------------+--------+-----------+-----------------------
    postgres  | postgres | UTF8     | libc            | en_US.utf8 | en_US.utf8 
|        |           | 
    template0 | postgres | UTF8     | libc            | en_US.utf8 | en_US.utf8 
|        |           | =c/postgres          +
              |          |          |                 |            |            
|        |           | postgres=CTc/postgres
    template1 | postgres | UTF8     | libc            | en_US.utf8 | en_US.utf8 
|        |           | =c/postgres          +
              |          |          |                 |            |            
|        |           | postgres=CTc/postgres
    testdb    | postgres | UTF8     | libc            | en_US.utf8 | en_US.utf8 
|        |           | 
   (4 rows)
   
   postgres=> \c
   psql (17.6 (Ubuntu 17.6-1.pgdg22.04+1), server 12.3-ShardingSphere-Proxy 
5.5.2)
   You are now connected to database "postgres" as user "postgres".
   postgres=> \c testdb
   You are now connected to database "testdb" as user "postgres".
   testdb=> \l
   ERROR:  Unknown column 'd.datlocale' in 'field list'.
   testdb=>
   ```
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   
[ss_postgres.zip](https://github.com/user-attachments/files/22796935/ss_postgres.zip)
   
   run `docker compose up -d` in this file.
   
   SQL to execute are shown above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to