文章目录
- 1. postgres进程session退出
- 2. 开启日志记录postgres进程会话状态
- 3. postgres进程会话结束,记录日志的实现原理
1. postgres进程session退出
默认情况下,新建一个postgres后端进程会话(session),或是postgres进程正常/异常退出时,日志中没有很明显的记录用于说明postgres后端进程的会话状态信息。因为默认情况下,postgresql.conf配置文件中两个配置选项:log_connections
和 log_disconnections
默认级别是off
。
#log_connections = off
#