Postgres SSL SYSCALL error: EOF detected with python and psycopg

前端 未结 7 1936
误落风尘
误落风尘 2020-12-15 03:40

Using psycopg2 package with python 2.7 I keep getting the titled error: psycopg2.DatabaseError: SSL SYSCALL error: EOF detected

It only occurs when I add a WHE

7条回答
  •  心在旅途
    2020-12-15 03:50

    In my case that was OOM killer (query is too heavy)

    Check dmesg:

    dmesg | grep -A2 Kill
    

    In my case:

    Out of memory: Kill process 28715 (postgres) score 150 or sacrifice child
    

提交回复
热议问题