title: psycopg2 error: DatabaseError: error with no message from the libpq
body: <p>I have an application that parses and loads data from csv files into a Postgres 9.3 database.  In serial execution insert statements/cursor executions work without an issue.</p>
  
  <p>I added celery in the mix to add parallel parsing and inserting of the data files.  Parsing works fine. However, I go to run insert statements and I get:</p>
  
  <pre><code>[2015-05-13 11:30:16,464:  ERROR/Worker-1] ingest_task.work_it: Exception
      Traceback (most recent call last):
      File "ingest_tasks.py", line 86, in work_it
          rowcount = ingest_data.load_data(con=con, statements=statements)
      File "ingest_data.py", line 134, in load_data
          ingest_curs.execute(statement)
      DatabaseError: error with no message from the libpq
  </code></pre>