我的postgres 版本:在docker logs -f 中的日志中查找到的
starting PostgreSQL 15.1 (Debian 15.1-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
出现的问题:
2023-06-14 08:30:51.765 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-06-14 08:30:51.770 UTC [28] LOG: database system was shut down at 2023-04-16 04:56:24 UTC
2023-06-14 08:30:51.784 UTC [1] LOG: database system is ready to accept connections
2023-06-14 08:31:03.124 UTC [32] ERROR: column "datlastsysoid" does not exist at character 17
2023-06-14 08:31:03.124 UTC [32] STATEMENT: SELECT DISTINCT datlastsysoid FROM pg_database
2023-06-14 08:31:05.957 UTC [33] ERROR: column "datlastsysoid" does not exist at character 17
2023-06-14 08:31:05.957 UTC [33] STATEMENT: SELECT DISTINCT datlastsysoid FROM pg_database
2023-06-14 08:31:17.840 UTC [35] ERROR: column "datlastsysoid" does not exist at character 17
我使用的Navicat 软件进行连接的
进行软件更新之后 可以正常连接:
我试试 用idea 自带的数据库连接
可以正常连接的,
如果大家在使用Navicat 出现连接问题的话可以试试别的方式进行 使用
或者是 更新Navicat的版本进行使用