项目场景:
提示:这里简述项目相关背景:
问题描述
设置配置参数不当,导致postgres无法连接的问题,可能有设置某个值过大,或者配置参数关系一个应该比另一个
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: Peer authentication failed for user "postgres" (Ubuntu)
log中显示
2023-12-25 19:16:40.800 CST [1162] FATAL: "max_wal_size" must be at least twice "wal_segment_size"
2023-12-25 19:16:40.801 CST [1162] LOG: database system is shut down
原因分析:
提示:这里填写问题的分析:
postgres中有两个设定配置参数的文件,一个是postgres.conf,这是手动设置的,一个是postgre.auto.conf,这是用于alter system set work_mem = 10000这种命令的
解决方案:
提示:这里填写该问题的具体解决方案:
。当因为使用命令导致配置参数设定不当,修改postgres.conf没有用,需要修改postgre.auto.conf中那个不当的参数,也许需要设定和postgres.conf中一致,最后可能要重启计算机。

320

被折叠的 条评论
为什么被折叠?



