PostgreSQL closing connection during requests
This kind of error looks like a bug in PostgreSQL:    


  server process (PID 20569) was terminated by signal 11: Segmentation
  fault


Try to post to https://www.postgresql.org/list/pgsql-bugs/