简体   繁体   English

如何绕过 postgresql.conf

[英]how to bypass postgresql.conf

I have a database that can not be started.我有一个无法启动的数据库。 It started when I change max_wal_size < wal_segement_size .它从我更改max_wal_size < wal_segement_size开始。 The error is FATAL ERROR "max wal sender must be at least twice wal_segment_size"错误是FATAL ERROR "max wal sender must be at least twice wal_segment_size"

I have changed the value back to its original size, but the error still comes up.我已将值更改回其原始大小,但仍然出现错误。 it seems that the postgres is still having hang over or something is stuck within the "internal cache".似乎 postgres 仍然挂起,或者某些东西卡在“内部缓存”中。

Why postgres does not pick up the new config file?为什么 postgres 不选择新的配置文件?

How can I clear the "cache"?如何清除“缓存”?

How can I overwrite the postgres.conf during start?如何在启动期间覆盖 postgres.conf? this is mainly to bypass whatever the postgres.conf that postgres read.这主要是为了绕过 postgres 读取的任何 postgres.conf。

Thanks谢谢

That error message does not exist in PostgreSQL. PostgreSQL 中不存在该错误消息。

Perhaps you mean也许你的意思是

"min_wal_size" must be at least twice "wal_segment_size"

If my guess is correct, and you didn't change the WAL segment size from the default 16MB, you can fix the problem by changing min_wal_size to a value of at least 32MB.如果我的猜测是正确的,并且您没有从默认的 16MB 更改 WAL 段大小,则可以通过将min_wal_size更改为至少 32MB 的值来解决问题。

max_wal_size must be no less than min_wal_size . max_wal_size必须不小于min_wal_size Typically, it should be much bigger for decent performance.通常,它应该更大以获得良好的性能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM