我需要查看所有 postgresql 日志。我尝试:
$ journalctl -f -u postgresql.service SYSLOG_IDENTIFIER=postgres
-- Logs begin at ?? 2013-03-06 00:57:40 KRAT. --
??? 11 23:41:07 nuzzflonk postgres[2432]: LOG: database system was interrupted; last known up at 2013-08-11 20:12:28 KRAT
??? 11 23:41:07 nuzzflonk postgres[2432]: LOG: database system was not properly shut down; automatic recovery in progress
??? 11 23:41:07 nuzzflonk postgres[2432]: LOG: record with zero length at 5/DACF208
??? 11 23:41:07 nuzzflonk postgres[2432]: LOG: redo is not required
??? 11 23:41:07 nuzzflonk postgres[2432]: LOG: …
Run Code Online (Sandbox Code Playgroud) systemd ×1