在过去的两天里,我的postgres数据库服务器意外关闭了五六次,通常是在服务器流量处于最低水平时。所以我检查了postgresql日志:
2021-09-18 10:17:36.099 GMT [22856] LOG: received smart shutdown request
2021-09-18 10:17:36.111 GMT [22856] LOG: background worker "logical replication launcher" (PID 22863) exited with exit code 1
grep: Trailing backslash
kill: (28): Operation not permitted
2021-09-18 10:17:39.601 GMT [55614] XXX@XXX FATAL: the database system is shutting down
2021-09-18 10:17:39.603 GMT [55622] XXX@XXX FATAL: the database system is shutting down
2021-09-18 10:17:39.686 GMT [55635] XXX@XXX FATAL: the database system is shutting down
2021-09-18 10:17:39.688 GMT [55636] XXX@XXX FATAL: the database …Run Code Online (Sandbox Code Playgroud)