Добрый день.
Столкнулся с проблемой, отвалилось соединение с БД, открыл лог:
/var/log/postgres/postgres-12-main.log
И увидел следующие логи:
terminating connection because of crash of another server process
The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
In a moment you should be able to reconnect to the database and repeat your command.
postgres@database_name WARNING: terminating connection because of crash of another server process
cat /var/log/syslog | grep postgres > /var/log/syslog_psql
Oct 29 10:04:52 www postgresql@12-main[2737628]: Cluster is not running.
Oct 29 10:04:52 www systemd[1]: postgresql@12-main.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Oct 29 10:04:52 www systemd[1]: postgresql@12-main.service: Failed with result 'exit-code'.
Системный лог:
https://pastebin.com/R0KY3FND
С чем может быть связано подобное поведение?