使用以下命令之后,就无法重新登录postgresql
alter system set shared_preload_libraries = 'pg_wait_sampling';
退出尝试再次登录。那么错误就会发生。以下是错误代码:
2022-03-15 11:35:30.726 IST [975] FATAL: could not access file "pg_wait_sampling": No such file or directory
2022-03-15 11:35:30.727 IST [975] LOG: database system is shut down
pg_ctl: could not start server
Examine the log output.postgresql版本: 14.2。系统: wsl ubuntu。在conf文件/etc/postgresql/14/main/postgresql.conf中“:
#shared_preload_libraries='' #(change requires restart)发布于 2022-03-15 06:37:22
根据postgresql.auto.conf文件中的PostgreSQL文档 alter命令存储。
您必须更改此文件并从该文件中删除pg_wait_sampling。
https://stackoverflow.com/questions/71477741
复制相似问题