выше много раз
DETAIL: 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.
2021-02-04 13:53:33.511 +03 [21563] HINT: In a moment you should be able to reconnect to the database and repeat your command.
2021-02-04 13:53:33.511 +03 [21540] WARNING: terminating connection because of crash of another server process
какой-то из постгресовых процессов аварийно завершился сам (segfault) или был завершен извне (sigkill, sigabrt), в результате чего постгрес перешел в recovery режим.
Посмотрите внимательно в постгресовом логе, нет ли слов типа Killed, посмотрите dmesg на предмет OOM, проверьте не появился ли coredump в месте специфичном для вашего дистрибутива